Skip to content

Commit a5083ed

Browse files
committed
iiod: dns-sd: Fix set-but-not-used value
Signed-off-by: Paul Cercueil <[email protected]>
1 parent c194e9e commit a5083ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iiod/dns-sd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,11 @@ static void start_avahi_thd(struct thread_pool *pool, void *d)
246246
{
247247

248248
struct pollfd pfd[2];
249-
int ret = ENOMEM;
250249
char label[AVAHI_LABEL_MAX];
251250
char host[AVAHI_LABEL_MAX - sizeof(IIOD_ON)];
252251
struct timespec ts;
252+
int ret;
253+
253254
ts.tv_nsec = 0;
254255
ts.tv_sec = 1;
255256

0 commit comments

Comments
 (0)