From: Uwe Hermann Date: Tue, 6 May 2014 18:20:04 +0000 (+0200) Subject: Adapt to SR_T_CHAR -> SR_T_STRING rename. X-Git-Tag: sigrok-cli-0.5.0~3 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9db40e9fa0ce27cb7cf0982363915ed13d117138;p=sigrok-cli.git Adapt to SR_T_CHAR -> SR_T_STRING rename. --- diff --git a/session.c b/session.c index 4648ed8..7d927b2 100644 --- a/session.c +++ b/session.c @@ -372,7 +372,7 @@ int opt_to_gvar(char *key, char *value, struct sr_config *src) break; src->data = g_variant_new_int32(tmp_u64); break; - case SR_T_CHAR: + case SR_T_STRING: src->data = g_variant_new_string(value); break; case SR_T_BOOL: diff --git a/show.c b/show.c index 3ecb319..a10af0e 100644 --- a/show.c +++ b/show.c @@ -410,7 +410,7 @@ void show_dev_detail(void) } g_variant_unref(gvar_list); - } else if (srci->datatype == SR_T_CHAR) { + } else if (srci->datatype == SR_T_STRING) { printf(" %s: ", srci->id); if (sr_config_get(sdi->driver, sdi, channel_group, srci->key, &gvar) == SR_OK) {