ossp-pkg/l2/l2_ch_prefix.c 1.21 -> 1.22
--- l2_ch_prefix.c 2002/07/30 19:08:24 1.21
+++ l2_ch_prefix.c 2002/08/06 12:55:06 1.22
@@ -112,7 +112,7 @@
break;
}
case 'N': {
- if (uname(&uts) == 0)
+ if (uname(&uts) != -1)
l2_util_sprintf(caBuf, sizeof(caBuf), uts.nodename);
else
l2_util_sprintf(caBuf, sizeof(caBuf), "localhost");
|
|