svn commit: r294567 - head/contrib/bsnmp/snmp_mibII
Bjoern A. Zeeb
bz at FreeBSD.org
Fri Jan 22 15:03:24 UTC 2016
Author: bz
Date: Fri Jan 22 15:03:22 2016
New Revision: 294567
URL: https://svnweb.freebsd.org/changeset/base/294567
Log:
Change the variable to a #define in order to make gcc happy which
otherwise will complain about "variably modified 'alias' at file scope".
Unbreaks the build on gcc platforms.
Modified:
head/contrib/bsnmp/snmp_mibII/mibII.h
Modified: head/contrib/bsnmp/snmp_mibII/mibII.h
==============================================================================
--- head/contrib/bsnmp/snmp_mibII/mibII.h Fri Jan 22 15:00:01 2016 (r294566)
+++ head/contrib/bsnmp/snmp_mibII/mibII.h Fri Jan 22 15:03:22 2016 (r294567)
@@ -58,7 +58,7 @@
#include "mibII_tree.h"
/* maximum size of the interface alias */
-static const u_int MIBIF_ALIAS_SIZE = 64 + 1;
+#define MIBIF_ALIAS_SIZE (64 + 1)
/*
* Interface list and flags.
More information about the svn-src-all
mailing list