diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-05-30 17:28:23 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-05-30 17:28:23 +0200 |
commit | 2eb55d32249100fa1f501f936d2bda04ca6fcb9a (patch) | |
tree | df634463a80b77cb094a392fa2c123238adf7e7a /plugins/simtech | |
parent | b874fba0e68414b61625e4bbd2ea6584f4ebaf51 (diff) |
plugins: use G_N_ELEMENTS when iterating ports array
Diffstat (limited to 'plugins/simtech')
-rw-r--r-- | plugins/simtech/mm-broadband-modem-simtech.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/simtech/mm-broadband-modem-simtech.c b/plugins/simtech/mm-broadband-modem-simtech.c index 25594d8d..488d4225 100644 --- a/plugins/simtech/mm-broadband-modem-simtech.c +++ b/plugins/simtech/mm-broadband-modem-simtech.c @@ -99,7 +99,7 @@ set_unsolicited_events_handlers (MMBroadbandModemSimtech *self, G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); /* Enable unsolicited events in given port */ - for (i = 0; i < 2; i++) { + for (i = 0; i < G_N_ELEMENTS (ports); i++) { if (!ports[i]) continue; |