@matheusbsbs / matheus-bagliano / commits / 8e7f9035b8
Fork 0

imap-send: cleanup execl() call to use NULL sentinel instead of 0

Some versions of gcc check that calls to the exec() family have the proper sentinel for variadic calls. This should be (char *) NULL according to the man page. Although for all other purposes the 0 is equivalent, gcc nevertheless does emit a warning for 0 and not for NULL. This also makes the usage consistent throughout git. The whitespace in function calls throughout imap-send.c has its own style, so I left it that way. Signed-off-by: Junio C Hamano <junkio@cox.net>

Marco Roeland committed Mar 11, 2006 at 09:55 UTC 8e7f9035b8271469747e3745aa7e095e12f74e5e
1 file changed +1 -1
imap-send.c
+1 -1
@@ -945,7 +945,7 @@ imap_open_store( imap_server_conf_t *srvc )
945 _exit( 127 );
946 close( a[0] );
947 close( a[1] );
948 - execl( "/bin/sh", "sh", "-c", srvc->tunnel, 0 );
948 + execl( "/bin/sh", "sh", "-c", srvc->tunnel, NULL );
949 _exit( 127 );
950 }
951