From b1ca6a351c18f38b9b6fb1b18347a099ae41ef18 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 24 Sep 2007 13:32:25 +0000 Subject: - simplified code in shouldProcessThisMessage() for debug output - changed strerror() calls to thread-safe strerror_r() variant --- net.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net.c') diff --git a/net.c b/net.c index ee2c0d9d..bcefad41 100644 --- a/net.c +++ b/net.c @@ -65,8 +65,9 @@ int should_use_so_bsdcompat(void) init_done = 1; if (uname(&utsname) < 0) { - dbgprintf("uname: %s\r\n", strerror(errno)); - return 1; + char errStr[1024]; + dbgprintf("uname: %s\r\n", strerror_r(errno, errStr, sizeof(errStr))); + return 1; } /* Format is .. where the first three are unsigned integers and the last -- cgit v1.2.3