diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-12-09 21:01:33 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-12-09 21:02:47 -0600 |
commit | 8495e047e68e16143d662d7c9332dc7e546acd83 (patch) | |
tree | 30807a70df51b633da71d955d92c5ff5a81503e7 | |
parent | b939d5e8d7bad4e01c672504b43ad137fbcba9f0 (diff) | |
download | ofono-8495e047e68e16143d662d7c9332dc7e546acd83.tar.bz2 |
Refactor: use unsigned ints for cids
-rw-r--r-- | include/gprs.h | 3 | ||||
-rw-r--r-- | src/gprs.c | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/gprs.h b/include/gprs.h index 5cec510f..72e480e2 100644 --- a/include/gprs.h +++ b/include/gprs.h @@ -65,7 +65,8 @@ void ofono_gprs_remove(struct ofono_gprs *gprs); void ofono_gprs_set_data(struct ofono_gprs *gprs, void *data); void *ofono_gprs_get_data(struct ofono_gprs *gprs); -void ofono_gprs_set_cid_range(struct ofono_gprs *gprs, int min, int max); +void ofono_gprs_set_cid_range(struct ofono_gprs *gprs, + unsigned int min, unsigned int max); void ofono_gprs_add_context(struct ofono_gprs *gprs, struct ofono_gprs_context *gc); @@ -71,8 +71,8 @@ struct ofono_gprs { int technology; int flags; int next_context_id; - int cid_min; - int cid_max; + unsigned int cid_min; + unsigned int cid_max; int netreg_status; struct ofono_netreg *netreg; unsigned int netreg_watch; @@ -1381,7 +1381,8 @@ void ofono_gprs_status_notify(struct ofono_gprs *gprs, gprs_attached_update(gprs); } -void ofono_gprs_set_cid_range(struct ofono_gprs *gprs, int min, int max) +void ofono_gprs_set_cid_range(struct ofono_gprs *gprs, + unsigned int min, unsigned int max) { if (gprs == NULL) return; |