OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ch_prefix.c versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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");

CVSTrac 2.0.1