Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Make NAMEI_DIAGNOSTIC compile.



details:   https://anonhg.NetBSD.org/src/rev/d18d168c387e
branches:  trunk
changeset: 534729:d18d168c387e
user:      soren <soren%NetBSD.org@localhost>
date:      Fri Aug 02 04:49:35 2002 +0000

description:
Make NAMEI_DIAGNOSTIC compile.

diffstat:

 sys/kern/vfs_lookup.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 852342cabcba -r d18d168c387e sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c     Fri Aug 02 04:08:47 2002 +0000
+++ b/sys/kern/vfs_lookup.c     Fri Aug 02 04:49:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_lookup.c,v 1.40 2002/06/21 02:19:12 wrstuden Exp $ */
+/*     $NetBSD: vfs_lookup.c,v 1.41 2002/08/02 04:49:35 soren Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.40 2002/06/21 02:19:12 wrstuden Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.41 2002/08/02 04:49:35 soren Exp $");
 
 #include "opt_ktrace.h"
 
@@ -388,9 +388,9 @@
        }
 #ifdef NAMEI_DIAGNOSTIC
        { char c = *cp;
-       *cp = '\0';
+       *(char *)cp = '\0';
        printf("{%s}: ", cnp->cn_nameptr);
-       *cp = c; }
+       *(char *)cp = c; }
 #endif
        ndp->ni_pathlen -= cnp->cn_namelen;
        ndp->ni_next = cp;
@@ -667,7 +667,7 @@
        int error = 0;
 #ifdef NAMEI_DIAGNOSTIC
        int newhash;                    /* DEBUG: check name hash */
-       char *cp;                       /* DEBUG: check name ptr/len */
+       const char *cp;                 /* DEBUG: check name ptr/len */
 #endif
 
        /*



Home | Main Index | Thread Index | Old Index