From 66073cdd21970013110f31ab013f5f6b6d8eeed2 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Wed, 6 Oct 2021 00:57:14 +0200 Subject: [PATCH] at: get rid of compiler warning --- src/at.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/at.c b/src/at.c index af26f51..5c35844 100644 --- a/src/at.c +++ b/src/at.c @@ -48,8 +48,11 @@ static int configure_serial(const char *tty) return fd; } -static void at_free_command(struct AtCommand *at_cmd, struct EG25Manager *manager) +static void at_free_command(gpointer cmd, gpointer data) { + struct AtCommand *at_cmd = cmd; + struct EG25Manager *manager = data; + if (!at_cmd) return;