aboutsummaryrefslogtreecommitdiffstats
path: root/sgsnemu/sgsnemu.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-09-24 10:23:24 +0800
committerHarald Welte <laforge@gnumonks.org>2017-09-24 10:27:07 +0800
commitf621498129023a17f8023d1f865cfe66ba9c235a (patch)
tree95632243f01a88802fee38ee122b31943088198b /sgsnemu/sgsnemu.c
parent7c20148e396928f587a3719e092a8d1486664773 (diff)
sgsnemu: Re-generate cmdline.[ch] using gengetopt
This will replace the manual additions to cmdline.[ch] with auto-generated code from gengetopt. We need to fix-up the RAT Type in sgsnemu.c as the manually-added code diverged from what gengetopt generates. Change-Id: Ia687e13d5cec1655a57078a767d2123aa022842c
Diffstat (limited to 'sgsnemu/sgsnemu.c')
-rw-r--r--sgsnemu/sgsnemu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index 0157e22..2bfe801 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -565,9 +565,9 @@ int process_options(int argc, char **argv)
/* rattype */
if (args_info.rattype_given == 1) {
options.rattype_given = 1;
- options.rattype.l = strlen(args_info.rattype_arg);
- options.rattype.v[0] = atoi(args_info.rattype_arg);
- printf("Using RAT Type: %s\n", args_info.rattype_arg);
+ options.rattype.l = 1;
+ options.rattype.v[0] = args_info.rattype_arg;
+ printf("Using RAT Type: %d\n", args_info.rattype_arg);
}
/* userloc */