OSSP CVS Repository

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

ossp-pkg/l2/l2_ut_level.c 1.5 -> 1.6

--- l2_ut_level.c        2001/10/09 15:34:55     1.5
+++ l2_ut_level.c        2001/10/31 16:47:05     1.6
@@ -57,7 +57,7 @@
 
     len = maxlen;
     string[0] = '\0';
-    for (i = 0; l2s_table[i].level != NULL; i++) {
+    for (i = 0; l2s_table[i].level != 0; i++) {
         if (levelmask & l2s_table[i].level) {
             levelmask &= ~(l2s_table[i].level);
             l = strlen(l2s_table[i].string) + 1;
@@ -126,7 +126,7 @@
         if (cpE > (string+maxlen))
             break;
         bFound = 0;
-        for (i = 0; l2s_table[i].level != NULL; i++) {
+        for (i = 0; l2s_table[i].level != 0; i++) {
             if (strncasecmp(cpB, l2s_table[i].string, cpE-cpB) == 0) {
                 *levelmask |= l2s_table[i].level;
                 bFound = 1;

CVSTrac 2.0.1