Commit c3443f9d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

s/NULLMSG/NULL/

parent e462531f
...@@ -575,7 +575,7 @@ main( int argc, char **argv ) ...@@ -575,7 +575,7 @@ main( int argc, char **argv )
printf( "\nresult: msgtype %d msgid %d\n", printf( "\nresult: msgtype %d msgid %d\n",
msgtype, res->lm_msgid ); msgtype, res->lm_msgid );
handle_result( ld, res ); handle_result( ld, res );
res = NULLMSG; res = NULL;
break; break;
case 'm': /* remove */ case 'm': /* remove */
...@@ -618,7 +618,7 @@ main( int argc, char **argv ) ...@@ -618,7 +618,7 @@ main( int argc, char **argv )
printf( "\nresult: msgid %d\n", printf( "\nresult: msgid %d\n",
res->lm_msgid ); res->lm_msgid );
handle_result( ld, res ); handle_result( ld, res );
res = NULLMSG; res = NULL;
} }
#endif /* LDAP_CONNECTIONLESS */ #endif /* LDAP_CONNECTIONLESS */
} else { } else {
...@@ -663,7 +663,7 @@ main( int argc, char **argv ) ...@@ -663,7 +663,7 @@ main( int argc, char **argv )
else { else {
printf( "\nresult: err %d\n", id ); printf( "\nresult: err %d\n", id );
handle_result( ld, res ); handle_result( ld, res );
res = NULLMSG; res = NULL;
} }
free_list( types ); free_list( types );
break; break;
...@@ -912,7 +912,7 @@ print_search_entry( LDAP *ld, LDAPMessage *res ) ...@@ -912,7 +912,7 @@ print_search_entry( LDAP *ld, LDAPMessage *res )
{ {
LDAPMessage *e; LDAPMessage *e;
for ( e = ldap_first_entry( ld, res ); e != NULLMSG; for ( e = ldap_first_entry( ld, res ); e != NULL;
e = ldap_next_entry( ld, e ) ) e = ldap_next_entry( ld, e ) )
{ {
BerElement *ber = NULL; BerElement *ber = NULL;
...@@ -972,6 +972,6 @@ print_search_entry( LDAP *ld, LDAPMessage *res ) ...@@ -972,6 +972,6 @@ print_search_entry( LDAP *ld, LDAPMessage *res )
} }
if ( res->lm_msgtype == LDAP_RES_SEARCH_RESULT if ( res->lm_msgtype == LDAP_RES_SEARCH_RESULT
|| res->lm_chain != NULLMSG ) || res->lm_chain != NULL )
print_ldap_result( ld, res, "search" ); print_ldap_result( ld, res, "search" );
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment