From: Uwe Hermann Date: Sat, 19 May 2018 19:51:12 +0000 (+0200) Subject: input/logicport: Fix outdated format_match(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=24801f4e805f5aa779a9cdff0cec42510dd1fb07;p=libsigrok.git input/logicport: Fix outdated format_match(). Reported by scan-build: src/input/logicport.c:1186:18: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] .format_match = format_match, ^~~~~~~~~~~~ --- diff --git a/src/input/logicport.c b/src/input/logicport.c index 99ad2c84..9986e0de 100644 --- a/src/input/logicport.c +++ b/src/input/logicport.c @@ -1022,7 +1022,7 @@ static int prepare_session_feed(struct sr_input *in) return SR_OK; } -static int format_match(GHashTable *metadata) +static int format_match(GHashTable *metadata, unsigned int *confidence) { GString *buf, *tmpbuf; int rc; @@ -1041,6 +1041,7 @@ static int format_match(GHashTable *metadata) if (rc == SR_OK && version && build) { sr_dbg("Looks like a LogicProbe project, version %s, build %s.", version, build); + *confidence = 1; } g_string_free(tmpbuf, TRUE);