Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37571720
en ru br
ALT Linux repos
S:3.2.1-alt1

Group :: File tools
RPM: cstream

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: cstream-3.2.1-rh-Wextra.patch
Download


Silence a few -Wextra warnings
Silence a few -Wextra warnings by #include-ing a missing header file,
and by properly terminating an array of structs.
--- cstream-2.7.6/cstream.c	2008-12-19 22:38:37.000000000 +0100
+++ cstream-2.7.6-Wextra/cstream.c	2008-12-20 11:21:12.000000000 +0100
@@ -97,6 +97,7 @@
 #else
 #ifdef HAVE_SYS_SOUNDCARD_H
 #include <sys/soundcard.h>
+#include <sys/ioctl.h>
 #define WANT_SOUND 1
 #else
 #ifdef HAVE_LINUX_SOUNDCARD_H
@@ -525,7 +529,7 @@
     } *it, funcs[3] = {
       {getsockname, "getsockname", "Local binding"},
       {getpeername, "getpeername", "Remote binding"},
-      {NULL}
+      {NULL, NULL, NULL}
     };
     union {
       struct sockaddr sa;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin