Skip to content

Commit cfd0a2c

Browse files
committed
Remove accidental semicolon and fix includes
1 parent 9543a27 commit cfd0a2c

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

ext/snmp/php_snmp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ZEND_END_MODULE_GLOBALS(snmp)
9292
#define SNMP_G(v) (snmp_globals.v)
9393
#endif
9494

95-
#define LONG_CONST(c) (zend_long) c;
95+
#define LONG_CONST(c) (zend_long) c
9696

9797
#else
9898

ext/snmp/snmp.c

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
#include <net-snmp/net-snmp-config.h>
6363
#include <net-snmp/net-snmp-includes.h>
6464

65+
#include "snmp_arginfo.h"
66+
6567
/* For net-snmp prior to 5.4 */
6668
#ifndef HAVE_SHUTDOWN_SNMP_LOGGING
6769
extern netsnmp_log_handler *logh_head;
@@ -73,12 +75,6 @@ extern netsnmp_log_handler *logh_head;
7375
}
7476
#endif
7577

76-
#define SNMP_VALUE_LIBRARY (0 << 0)
77-
#define SNMP_VALUE_PLAIN (1 << 0)
78-
#define SNMP_VALUE_OBJECT (1 << 1)
79-
80-
#include "snmp_arginfo.h"
81-
8278
typedef struct snmp_session php_snmp_session;
8379

8480
#define PHP_SNMP_ADD_PROPERTIES(a, b) \
@@ -91,23 +87,6 @@ typedef struct snmp_session php_snmp_session;
9187
} \
9288
}
9389

94-
#define PHP_SNMP_ERRNO_NOERROR 0
95-
#define PHP_SNMP_ERRNO_GENERIC (1 << 1)
96-
#define PHP_SNMP_ERRNO_TIMEOUT (1 << 2)
97-
#define PHP_SNMP_ERRNO_ERROR_IN_REPLY (1 << 3)
98-
#define PHP_SNMP_ERRNO_OID_NOT_INCREASING (1 << 4)
99-
#define PHP_SNMP_ERRNO_OID_PARSING_ERROR (1 << 5)
100-
#define PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES (1 << 6)
101-
#define PHP_SNMP_ERRNO_ANY ( \
102-
PHP_SNMP_ERRNO_GENERIC | \
103-
PHP_SNMP_ERRNO_TIMEOUT | \
104-
PHP_SNMP_ERRNO_ERROR_IN_REPLY | \
105-
PHP_SNMP_ERRNO_OID_NOT_INCREASING | \
106-
PHP_SNMP_ERRNO_OID_PARSING_ERROR | \
107-
PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES | \
108-
PHP_SNMP_ERRNO_NOERROR \
109-
)
110-
11190
ZEND_DECLARE_MODULE_GLOBALS(snmp)
11291
static PHP_GINIT_FUNCTION(snmp);
11392

ext/sysvmsg/php_sysvmsg.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,29 @@ extern zend_module_entry sysvmsg_module_entry;
2525
#include "php_version.h"
2626
#define PHP_SYSVMSG_VERSION PHP_VERSION
2727

28+
29+
#define SNMP_VALUE_LIBRARY (0 << 0)
30+
#define SNMP_VALUE_PLAIN (1 << 0)
31+
#define SNMP_VALUE_OBJECT (1 << 1)
32+
33+
#define PHP_SNMP_ERRNO_NOERROR 0
34+
#define PHP_SNMP_ERRNO_GENERIC (1 << 1)
35+
#define PHP_SNMP_ERRNO_TIMEOUT (1 << 2)
36+
#define PHP_SNMP_ERRNO_ERROR_IN_REPLY (1 << 3)
37+
#define PHP_SNMP_ERRNO_OID_NOT_INCREASING (1 << 4)
38+
#define PHP_SNMP_ERRNO_OID_PARSING_ERROR (1 << 5)
39+
#define PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES (1 << 6)
40+
#define PHP_SNMP_ERRNO_ANY ( \
41+
PHP_SNMP_ERRNO_GENERIC | \
42+
PHP_SNMP_ERRNO_TIMEOUT | \
43+
PHP_SNMP_ERRNO_ERROR_IN_REPLY | \
44+
PHP_SNMP_ERRNO_OID_NOT_INCREASING | \
45+
PHP_SNMP_ERRNO_OID_PARSING_ERROR | \
46+
PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES | \
47+
PHP_SNMP_ERRNO_NOERROR \
48+
)
49+
50+
2851
#endif /* HAVE_SYSVMSG */
2952

3053
#endif /* PHP_SYSVMSG_H */

0 commit comments

Comments
 (0)