Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162632172
D53308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D53308.diff
View Options
diff --git a/sbin/ipf/libipf/interror.c b/sbin/ipf/libipf/interror.c
--- a/sbin/ipf/libipf/interror.c
+++ b/sbin/ipf/libipf/interror.c
@@ -17,7 +17,7 @@
static ipf_error_entry_t *find_error(int);
-#define IPF_NUM_ERRORS 477
+#define IPF_NUM_ERRORS sizeof(ipf_errors) / sizeof(ipf_error_entry_t)
/*
* NO REUSE OF NUMBERS!
@@ -25,7 +25,7 @@
* IF YOU WANT TO ADD AN ERROR TO THIS TABLE, _ADD_ A NEW NUMBER.
* DO _NOT_ USE AN EMPTY NUMBER OR FILL IN A GAP.
*/
-static ipf_error_entry_t ipf_errors[IPF_NUM_ERRORS] = {
+static ipf_error_entry_t ipf_errors[] = {
{ 1, "auth table locked/full" },
{ 2, "" },
{ 3, "copyinptr received bad address" },
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 6:51 AM (11 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35108703
Default Alt Text
D53308.diff (664 B)
Attached To
Mode
D53308: ipfilter: Calculate the number of elements in ipf_errors
Attached
Detach File
Event Timeline
Log In to Comment