Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
fed6edbc
Commit
fed6edbc
authored
Mar 15, 2016
by
Davide Ciminaghi
Committed by
Alessandro Rubini
Apr 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix-conf.c: use macros for declaring options and remove useless functions
Signed-off-by:
Davide Ciminaghi
<
ciminaghi@gnudd.com
>
parent
e205d595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
unix-conf.c
arch-unix/unix-conf.c
+2
-16
No files found.
arch-unix/unix-conf.c
View file @
fed6edbc
...
...
@@ -8,22 +8,8 @@
#include <ppsi/ppsi.h>
static
int
f_rxdrop
(
struct
pp_argline
*
l
,
int
lineno
,
struct
pp_globals
*
ppg
,
union
pp_cfg_arg
*
arg
)
{
ppg
->
rxdrop
=
arg
->
i
;
return
0
;
}
static
int
f_txdrop
(
struct
pp_argline
*
l
,
int
lineno
,
struct
pp_globals
*
ppg
,
union
pp_cfg_arg
*
arg
)
{
ppg
->
txdrop
=
arg
->
i
;
return
0
;
}
struct
pp_argline
pp_arch_arglines
[]
=
{
{
f_rxdrop
,
"rx-drop"
,
ARG_INT
}
,
{
f_txdrop
,
"tx-drop"
,
ARG_INT
}
,
GLOB_OPTION_INT
(
"rx-drop"
,
ARG_INT
,
NULL
,
rxdrop
)
,
GLOB_OPTION_INT
(
"tx-drop"
,
ARG_INT
,
NULL
,
txdrop
)
,
{}
};
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