dma: don't use __unused
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 3 Oct 2009 19:32:07 +0000 (21:32 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 3 Oct 2009 20:45:30 +0000 (22:45 +0200)
__unused avoids a gcc warning that the parameter is not being used, but
this does not exist in other systems or is overloaded with a different
meaning.

Instead simply use a cast to (void) to silence gcc.

libexec/dma/net.c

index e3c563d..607b992 100644 (file)
@@ -70,8 +70,9 @@ ssl_errstr(void)
 }
 
 static void
-sig_alarm(int signo __unused)
+sig_alarm(int signo)
 {
+       (void)signo;    /* so that gcc doesn't complain */
        longjmp(timeout_alarm, 1);
 }