Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/smbfs/lib/smb Don't return NULL as an int.



details:   https://anonhg.NetBSD.org/src/rev/470cade8dad0
branches:  trunk
changeset: 553764:470cade8dad0
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:36:06 2003 +0000

description:
Don't return NULL as an int.

diffstat:

 dist/smbfs/lib/smb/rap.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r b2c1c0500c69 -r 470cade8dad0 dist/smbfs/lib/smb/rap.c
--- a/dist/smbfs/lib/smb/rap.c  Tue Oct 21 02:34:45 2003 +0000
+++ b/dist/smbfs/lib/smb/rap.c  Tue Oct 21 02:36:06 2003 +0000
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rap.c,v 1.3 2003/04/04 08:05:36 jdolecek Exp $");
+__RCSID("$NetBSD: rap.c,v 1.4 2003/10/21 02:36:06 fvdl Exp $");
 
 #include <sys/param.h>
 #include <sys/errno.h>
@@ -199,7 +199,7 @@
 
        rap = malloc(sizeof(*rap));
        if (rap == NULL)
-               return NULL;
+               return 0;
        bzero(rap, sizeof(*rap));
        p = rap->r_sparam = rap->r_nparam = strdup(param);
        rap->r_sdata = rap->r_ndata = strdup(data);



Home | Main Index | Thread Index | Old Index