diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-02-26 18:19:23 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-02-27 22:55:51 +0100 |
commit | ecec131bb8d14e70fdcde1b71be6d35a90999ee5 (patch) | |
tree | 440592da83cc3f15ee2c6b7adcca5edaedc25586 /decoder | |
parent | 987819ad8910f5fedca4553706ec88919a3c9ad9 (diff) | |
download | sigrok-test-ecec131bb8d14e70fdcde1b71be6d35a90999ee5.tar.gz sigrok-test-ecec131bb8d14e70fdcde1b71be6d35a90999ee5.zip |
runtc: minor nits in main()
Pass NULL instead of 0 where a pointer is expected. Fixup whitespace.
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/runtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/runtc.c b/decoder/runtc.c index 3d0bfd8..c7462b4 100644 --- a/decoder/runtc.c +++ b/decoder/runtc.c @@ -755,14 +755,14 @@ int main(int argc, char **argv) if (c == 'p') { channel = malloc(sizeof(struct channel)); channel->name = g_strdup(kv[0]); - channel->channel = strtoul(kv[1], 0, 10); + channel->channel = strtoul(kv[1], NULL, 10); /* Apply to last PD. */ pd->channels = g_slist_append(pd->channels, channel); } else { option = malloc(sizeof(struct option)); option->key = g_strdup(kv[0]); option->value = g_variant_new_string(kv[1]); - g_variant_ref_sink(option->value); + g_variant_ref_sink(option->value); /* Apply to last PD. */ pd->options = g_slist_append(pd->options, option); } |