NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/42721: Missing defined COMPAT13 and COMPAT50 in uvm_swap.c
>Number: 42721
>Category: kern
>Synopsis: Missing defined COMPAT13 and COMPAT50 in uvm_swap.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 02 10:00:01 +0000 2010
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Missing defined COMPAT13 and COMPAT50 in uvm_swap.c found by cppcheck.
>How-To-Repeat:
>Fix:
diff -u -r1.147 uvm_swap.c
--- sys/uvm/uvm_swap.c 21 Oct 2009 21:12:07 -0000 1.147
+++ sys/uvm/uvm_swap.c 2 Feb 2010 08:42:14 -0000
@@ -788,6 +788,8 @@
memcpy(&sep50->se50_path, sdp->swd_path,
sizeof sep50->se50_path);
sep = (struct swapent *)(sep50 + 1);
+#endif
+#if defined(COMPAT_13) || defined(COMPAT_50)
}
#endif
count++;
Home |
Main Index |
Thread Index |
Old Index