Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/kame/racoon Don't assign NULL as an integer.



details:   https://anonhg.NetBSD.org/src/rev/041a7155b51d
branches:  trunk
changeset: 553780:041a7155b51d
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 03:06:55 2003 +0000

description:
Don't assign NULL as an integer.

diffstat:

 crypto/dist/kame/racoon/algorithm.c |  4 ++--
 crypto/dist/kame/racoon/cftoken.l   |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r e49b331311d8 -r 041a7155b51d crypto/dist/kame/racoon/algorithm.c
--- a/crypto/dist/kame/racoon/algorithm.c       Tue Oct 21 03:03:39 2003 +0000
+++ b/crypto/dist/kame/racoon/algorithm.c       Tue Oct 21 03:06:55 2003 +0000
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: algorithm.c,v 1.5 2003/07/12 09:37:09 itojun Exp $");
+__RCSID("$NetBSD: algorithm.c,v 1.6 2003/10/21 03:06:55 fvdl Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -298,7 +298,7 @@
 
        f = alg_oakley_hashdef(doi);
        if (f == NULL || f->hashlen == NULL)
-               return NULL;
+               return 0;
 
        return (f->hashlen)();
 }
diff -r e49b331311d8 -r 041a7155b51d crypto/dist/kame/racoon/cftoken.l
--- a/crypto/dist/kame/racoon/cftoken.l Tue Oct 21 03:03:39 2003 +0000
+++ b/crypto/dist/kame/racoon/cftoken.l Tue Oct 21 03:06:55 2003 +0000
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cftoken.l,v 1.12 2003/08/26 03:31:51 itojun Exp $");
+__RCSID("$NetBSD: cftoken.l,v 1.13 2003/10/21 03:06:55 fvdl Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -301,7 +301,7 @@
                        char *p = yytext;
                        YYD;
                        while (*++p != ']') ;
-                       *p = NULL;
+                       *p = 0;
                        yytext++;
                        yylval.num = atoi(yytext);
                        return(PORT);



Home | Main Index | Thread Index | Old Index