From e3ed6571513815dadeada9f65eb941a6deea49e0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 2 Feb 1999 23:55:30 +0000 Subject: Use a system-independent way to get version. svn path=/trunk/; revision=2370 --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.c b/interface.c index 419e7d01..08978162 100644 --- a/interface.c +++ b/interface.c @@ -46,7 +46,7 @@ static char *netdevfmt; void interface_init(void) /* figure out which /roc/dev/net format to use */ { - FILE *fp = fopen("/proc/sys/kernel/osrelease", "r"); + FILE *fp = popen("uname -r", "r"); /* still wins if /proc is out */ /* pre-linux-2.2 format -- transmit packet count in 8th field */ netdevfmt = "%d %d %*d %*d %*d %d %*d %d %*d %*d %*d %*d %d"; -- cgit v1.2.3