From 341e3681d651917dfa8f3071c8ddec22c4e80c4a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 1 Jul 1999 04:39:42 +0000 Subject: [PATCH] s/NULL/'\0'/ where appropriate --- clients/tools/ldapdelete.c | 4 ++-- clients/tools/ldapmodify.c | 4 ++-- clients/tools/ldapmodrdn.c | 4 ++-- clients/tools/ldappasswd.c | 4 ++-- clients/tools/ldapsearch.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 815d10e583..72d550df2f 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -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; diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 37acfd6a0a..dc150e31f0 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -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; diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index 897196dd1e..a3571863ad 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -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; diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 02470392ac..3d48a2d2c5 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -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; diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index ebb837d6f0..54e4b24429 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -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; -- 2.39.5