0 is a horrible null-pointer constant. Don't use it.
Especially, when just a few lines above, in the same function,
we've used NULL for the same thing.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
#ident "$Id$"
+#include <stddef.h>
#include <stdio.h>
#include <string.h>
if (len > sgrbuflen) {
char *buf = REALLOC(sgrbuf, len, char);
- if (NULL == buf) {
+ if (NULL == buf)
return NULL;
- }
+
sgrbuf = buf;
sgrbuflen = len;
}
*/
if (NULL != cp || i != FIELDS)
- return 0;
+ return NULL;
sgroup.sg_name = fields[0];
sgroup.sg_passwd = fields[1];