projects
/
oweals
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21ca194
)
Fix compiler warning
author
Steven Barth
<steven@midlink.org>
Wed, 30 Apr 2014 15:49:32 +0000
(17:49 +0200)
committer
Steven Barth
<steven@midlink.org>
Wed, 30 Apr 2014 15:49:32 +0000
(17:49 +0200)
src/script.c
patch
|
blob
|
history
diff --git
a/src/script.c
b/src/script.c
index 5ddd6c50295c41461739f3c15ce8733e2d6285ad..13ac5627883df02e7b278f070a21e3b851504618 100644
(file)
--- a/
src/script.c
+++ b/
src/script.c
@@
-229,8
+229,6
@@
static void s46_to_env(enum odhcp6c_state state, const uint8_t *data, size_t len
{
const char *name = (state == STATE_S46_MAPE) ? "MAPE" :
(state == STATE_S46_MAPT) ? "MAPT" : "LW4O6";
- const char *type = (state == STATE_S46_MAPE) ? "map-e" :
- (state == STATE_S46_MAPT) ? "map-t" : "lw4o6";
char *str;
size_t strsize;
@@
-240,6
+238,9
@@
static void s46_to_env(enum odhcp6c_state state, const uint8_t *data, size_t len
fputc('=', fp);
#ifdef EXT_S46
+ const char *type = (state == STATE_S46_MAPE) ? "map-e" :
+ (state == STATE_S46_MAPT) ? "map-t" : "lw4o6";
+
uint8_t *odata;
uint16_t otype, olen;
dhcpv6_for_each_option(data, &data[len], otype, olen, odata) {