]> git.sur5r.net Git - openldap/commitdiff
s/NULL/'\0'/ where appropriate
authorKurt Zeilenga <kurt@openldap.org>
Thu, 1 Jul 1999 04:39:42 +0000 (04:39 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 1 Jul 1999 04:39:42 +0000 (04:39 +0000)
clients/tools/ldapdelete.c
clients/tools/ldapmodify.c
clients/tools/ldapmodrdn.c
clients/tools/ldappasswd.c
clients/tools/ldapsearch.c

index 815d10e583e4916d87f9e93eb5bb0a226534eb41..72d550df2ff628d7d5b8e91836f2eda2ee340c9a 100644 (file)
@@ -73,8 +73,8 @@ main( int argc, char **argv )
                {
                        char* p;
 
-                       for( p = optarg; *p == NULL; p++ ) {
-                               *p = 'X';
+                       for( p = optarg; *p == '\0'; p++ ) {
+                               *p = '*';
                        }
                }
            break;
index 37acfd6a0a4864d342d41809d37b627abd2e2f8f..dc150e31f0332a3cacc385e3ba2d34c19d8065db 100644 (file)
@@ -162,8 +162,8 @@ main( int argc, char **argv )
                {
                        char* p;
 
-                       for( p = optarg; *p == NULL; p++ ) {
-                               *p = 'X';
+                       for( p = optarg; *p == '\0'; p++ ) {
+                               *p = '*';
                        }
                }
            break;
index 897196dd1ea25a0bc5341bb8140b6289781941fa..a3571863ad8beeca17056b14a6b24ca559561810 100644 (file)
@@ -93,8 +93,8 @@ main(int argc, char **argv)
                {
                        char* p;
 
-                       for( p = optarg; *p == NULL; p++ ) {
-                               *p = 'X';
+                       for( p = optarg; *p == '\0'; p++ ) {
+                               *p = '*';
                        }
                }
            break;
index 02470392acd508af03c09a675a16196f9562414f..3d48a2d2c5eebfd64104a0ffb81f57bacb371a6e 100644 (file)
@@ -517,8 +517,8 @@ main (int argc, char *argv[])
                        {
                                char* p;
 
-                               for( p = optarg; *p == NULL; p++ ) {
-                                       *p = 'X';
+                               for( p = optarg; *p == '\0'; p++ ) {
+                                       *p = '*';
                                }
                        }
                        break;
index ebb837d6f0ebd15b30d09c59db4c046a1b79b178..54e4b244295f7a3e97fa1b106863065659cfe94b 100644 (file)
@@ -197,8 +197,8 @@ main( int argc, char **argv )
                {
                        char* p;
 
-                       for( p = optarg; *p == NULL; p++ ) {
-                               *p = 'X';
+                       for( p = optarg; *p == '\0'; p++ ) {
+                               *p = '*';
                        }
                }
            break;