Commit fed6edbc authored by Davide Ciminaghi's avatar Davide Ciminaghi Committed by Alessandro Rubini

unix-conf.c: use macros for declaring options and remove useless functions

Signed-off-by: Davide Ciminaghi's avatarDavide Ciminaghi <ciminaghi@gnudd.com>
parent e205d595
......@@ -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),
{}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment