diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-24 13:32:25 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-24 13:32:25 +0000 |
commit | b1ca6a351c18f38b9b6fb1b18347a099ae41ef18 (patch) | |
tree | 4fa21767d72ff73c1288e1497885a85c306fa8a8 /net.c | |
parent | 7fc7824b866ef7657ba52e8d7bc806d981d73811 (diff) | |
download | rsyslog-b1ca6a351c18f38b9b6fb1b18347a099ae41ef18.tar.gz rsyslog-b1ca6a351c18f38b9b6fb1b18347a099ae41ef18.tar.xz rsyslog-b1ca6a351c18f38b9b6fb1b18347a099ae41ef18.zip |
- simplified code in shouldProcessThisMessage() for debug output
- changed strerror() calls to thread-safe strerror_r() variant
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 <version>.<patchlevel>.<sublevel><extraversion> where the first three are unsigned integers and the last |