summaryrefslogtreecommitdiffstats
path: root/src/modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c
index 22a614fe..209033f2 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -207,7 +207,7 @@ int __ofono_modem_add_atom_watch(struct ofono_modem *modem,
watch = g_new0(struct ofono_atom_watch, 1);
watch->type = type;
- watch->id = modem->next_atom_watch_id++;
+ watch->id = ++modem->next_atom_watch_id;
watch->notify = notify;
watch->destroy = destroy;
watch->notify_data = data;