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,
                    ^~~~~~~~~~~~
This commit is contained in:
Uwe Hermann 2018-05-19 21:51:12 +02:00
parent 092843eb42
commit 24801f4e80
1 changed files with 2 additions and 1 deletions

View File

@ -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);