Module Name:    src
Committed By:   joerg
Date:           Fri Nov 23 14:48:31 UTC 2012

Modified Files:
        src/sys/netinet: tcp_vtw.h

Log Message:
Add RCS keyword. Avoid overflow in constant.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/netinet/tcp_vtw.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/tcp_vtw.h
diff -u src/sys/netinet/tcp_vtw.h:1.5 src/sys/netinet/tcp_vtw.h:1.6
--- src/sys/netinet/tcp_vtw.h:1.5	Tue Jun  7 22:51:32 2011
+++ src/sys/netinet/tcp_vtw.h	Fri Nov 23 14:48:31 2012
@@ -1,3 +1,4 @@
+/*	$NetBSD: tcp_vtw.h,v 1.6 2012/11/23 14:48:31 joerg Exp $	*/
 /*
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -186,7 +187,7 @@ fatp_full(fatp_t *fp) 
 {
 	fatp_t full;
 
-	full.inuse = ~0;
+	full.inuse = (1U << FATP_NTAGS) - 1U;
 
 	return (fp->inuse == full.inuse);
 }

Reply via email to