aboutsummaryrefslogtreecommitdiff
path: root/libqcdm/tests/modepref.c
AgeCommit message (Collapse)Author
2020-01-30libqcdm,modepref: fix warnings with -Wdiscarded-qualifiersAleksander Morgado
modepref.c: In function ‘main’: modepref.c:539:11: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 539 | putenv ("QCDM_DEBUG=1"); | ^~~~~~~~~~~~~~ In file included from modepref.c:21: /usr/include/stdlib.h:647:26: note: expected ‘char *’ but argument is of type ‘const char *’ 647 | extern int putenv (char *__string) __THROW __nonnull ((1)); | ~~~~~~^~~~~~~~
2020-01-30libqcdm,modepref: fix warnings with -Wsign-compareAleksander Morgado
modepref.c: In function ‘print_buf’: modepref.c:46:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 46 | for (i = 0; i < len; i++) { | ^ modepref.c: In function ‘qcdm_wait_reply’: modepref.c:167:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 167 | } while (total < sizeof (readbuf)); | ^
2016-11-23libqcdm,libwmc: use C99 sized types from stdint.hAleksander Morgado
2013-03-13qcdm: add auto-LTE modes for GSM and CDMADan Williams
as in, CDMA+EVDO+LTE and GSM+UMTS+LTE which were missing before.
2013-03-12qcdm: modepref: reset device after setting mode preferenceDan Williams
Otherwise it doesn't actually take until you unplug/replug.
2013-03-12qcdm: add modepref utilityDan Williams
Sets and gets the NV "mode pref" item for allowed access technologies.