projects
/
project
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a599ba
)
wds: cast pdp_type enum to int to avoid clang considering the range check tautological
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 22 Nov 2015 11:36:28 +0000
(12:36 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 22 Nov 2015 11:37:10 +0000
(12:37 +0100)
enum overflow behavior is undefined
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
commands-wds.c
patch
|
blob
|
history
diff --git
a/commands-wds.c
b/commands-wds.c
index fca5fe77383a121b912b374bc91608bb102a8385..0615a7a143b1e1c8fe920faf06119cf1191d9f61 100644
(file)
--- a/
commands-wds.c
+++ b/
commands-wds.c
@@
-246,7
+246,7
@@
cmd_wds_get_current_settings_cb(struct qmi_dev *qmi, struct qmi_request *req, st
t = blobmsg_open_table(&status, NULL);
- if (res.set.pdp_type && res.data.pdp_type < ARRAY_SIZE(pdptypes))
+ if (res.set.pdp_type &&
(int)
res.data.pdp_type < ARRAY_SIZE(pdptypes))
blobmsg_add_string(&status, "pdp-type", pdptypes[res.data.pdp_type]);
if (res.set.ip_family) {