vcl: fix coverity warnings 85/42585/1
authorFlorin Coras <[email protected]>
Fri, 28 Mar 2025 04:17:44 +0000 (00:17 -0400)
committerFlorin Coras <[email protected]>
Fri, 28 Mar 2025 04:17:44 +0000 (00:17 -0400)
Type: fix

Change-Id: I41a9332bdd7a34ce30eaa5cd2378990dbe8e31f5
Signed-off-by: Florin Coras <[email protected]>
src/vcl/vcl_private.c

index 1adc8cb..7a9b60a 100644 (file)
@@ -212,14 +212,16 @@ vcl_worker_detached_start_signal_mq (vcl_worker_t *wrk)
       exit (1);
     }
 
-  int sig = 1, __clib_unused rv;
+  int __clib_unused rv;
+  u8 sig = 1;
   rv = write (wrk->detached_pipefds[1], &sig, 1);
 }
 
 void
 vcl_worker_detached_signal_mq (vcl_worker_t *wrk)
 {
-  int buf, __clib_unused rv;
+  int __clib_unused rv;
+  u8 buf;
   rv = read (wrk->detached_pipefds[0], &buf, 1);
   rv = write (wrk->detached_pipefds[1], &buf, 1);
 }