Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
4f9dcb2c
Commit
4f9dcb2c
authored
Jul 07, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmp: remove warnings
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
29c9860f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
Makefile
userspace/snmpd/Makefile
+1
-1
wrsPstats.c
userspace/snmpd/wrsPstats.c
+0
-3
No files found.
userspace/snmpd/Makefile
View file @
4f9dcb2c
...
...
@@ -8,7 +8,7 @@ CC = $(CROSS_COMPILE)gcc
LD
=
$(CROSS_COMPILE)
ld
# defer running "net-snmp-config --cflags" so it is visible in make output
CFLAGS
+=
-fPIC
$$
(
$(NET_SNMP_CONFIG)
--cflags
|
sed
s,-I/usr/include,,
)
CFLAGS
+=
-fPIC
-Wall
$$
(
$(NET_SNMP_CONFIG)
--cflags
|
sed
s,-I/usr/include,,
)
LDFLAGS
=
-shared
$$
(
$(NET_SNMP_CONFIG)
--ldflags
)
CFLAGS
+=
-Iinclude
-DWRS_WITH_SNMP_HACKISH_LOG
=
0
...
...
userspace/snmpd/wrsPstats.c
View file @
4f9dcb2c
...
...
@@ -123,8 +123,6 @@ wrsPstats_handler(netsnmp_mib_handler *handler,
netsnmp_request_info
*
request
;
netsnmp_variable_list
*
requestvb
;
netsnmp_table_request_info
*
table_info
;
oid
subid
;
long
state
;
struct
pstats_global_data
*
data
=
&
pstats_global_data
;
/* a shorter name */
int
counter
;
...
...
@@ -182,7 +180,6 @@ wrsPstats_next_entry( void **loop_context,
netsnmp_variable_list
*
index
,
netsnmp_iterator_info
*
data
)
{
long
addr
,
port
;
intptr_t
i
;
/* create the line ID from counter number */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment