Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 17:03:58 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 62763 for review
Message-ID:  <200410061703.i96H3wHI051896@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=62763

Change 62763 by jhb@jhb_twclab on 2004/10/06 17:03:23

	Compile.

Affected files ...

.. //depot/projects/smpng/sys/kern/kern_descrip.c#68 edit

Differences ...

==== //depot/projects/smpng/sys/kern/kern_descrip.c#68 (text+ko) ====

@@ -391,7 +391,7 @@
 
 	case F_SETFD:
 		/* mtx_assert(&Giant, MA_NOTOWNED); */
-		KASSERT(*pop != 0xdeadc0de, ("writing to free'd flags"));
+		KASSERT(*pop != (char)0xde, ("writing to free'd flags"));
 		*pop = (*pop &~ UF_EXCLOSE) |
 		    (arg & FD_CLOEXEC ? UF_EXCLOSE : 0);
 		FILEDESC_UNLOCK(fdp);
@@ -684,7 +684,7 @@
 	 * Duplicate the source descriptor
 	 */
 	fdp->fd_ofiles[new] = fp;
-	KASSERT(fdp->fd_ofileflags[old] != 0xdeadc0de, ("reading/writing free'd file flags"));
+	KASSERT(fdp->fd_ofileflags[old] != (char)0xde, ("reading/writing free'd file flags"));
 	fdp->fd_ofileflags[new] = fdp->fd_ofileflags[old] &~ UF_EXCLOSE;
 	if (new > fdp->fd_lastfile)
 		fdp->fd_lastfile = new;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410061703.i96H3wHI051896>