diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2022-01-23 17:12:43 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2022-01-23 17:12:49 +0100 |
commit | 59bcb27a505fac4c97e7a2f1a55db1e8ed2c2d8a (patch) | |
tree | d64b0e6daa54816482fdcd5b1952fb2018798026 | |
parent | fca76c5bd7d0c2e35806d5d8f300904992f5b70a (diff) | |
download | libgphoto2-59bcb27a505fac4c97e7a2f1a55db1e8ed2c2d8a.tar.gz |
warning fixes for recent panasonic commit
-rw-r--r-- | camlibs/ptp2/config.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index cf8eac1b5..bdbad92a8 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -9089,7 +9089,7 @@ _get_Panasonic_AFMode(CONFIG_GET_ARGS) { for (i = 0; i < listCount; i++) { for (j=0;j<sizeof(panasonic_aftable)/sizeof(panasonic_aftable[0]);j++) { sprintf(buf,_("%d"), list[i]); - if ((int)list[i] == (int)currentVal && j == (int)currentVal) { + if ((list[i] == currentVal) && (j == currentVal)) { gp_widget_set_value (*widget, panasonic_aftable[j].str); valset = 1; break; @@ -9188,7 +9188,7 @@ _get_Panasonic_ExpMode(CONFIG_GET_ARGS) { for (i = 0; i < listCount; i++) { for (j=0;j<sizeof(panasonic_rmodetable)/sizeof(panasonic_rmodetable[0]);j++) { sprintf(buf,_("%d"), list[i]); - if ((int)list[i] == (int)currentVal && j == (int)currentVal) { + if ((list[i] == currentVal) && (j == currentVal)) { gp_widget_set_value (*widget, panasonic_rmodetable[j].str); valset = 1; break; @@ -9266,8 +9266,6 @@ _put_Panasonic_Recording(CONFIG_PUT_ARGS) { PTPParams *params = &(camera->pl->params); char *xval; - uint32_t val = 0; - uint32_t i; CR (gp_widget_get_value(widget, &xval)); if (!strcmp(xval, "start")) { |