]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: fix compiler warnings
authorSami Kerola <kerolasa@iki.fi>
Sun, 20 Feb 2011 12:21:13 +0000 (13:21 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 15:31:37 +0000 (16:31 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/script.c

index 9367fafbcf899875cdea894bd2f93c74eff5fd6c..3ca5e20649c998d93994e4664501829601ee35ec 100644 (file)
@@ -278,7 +278,7 @@ doinput() {
 #include <sys/wait.h>
 
 void
-finish(int dummy) {
+finish(int dummy __attribute__ ((__unused__))) {
        int status;
        register int pid;
 
@@ -290,7 +290,7 @@ finish(int dummy) {
 }
 
 void
-resize(int dummy) {
+resize(int dummy __attribute__ ((__unused__))) {
        resized = 1;
        /* transmit window change information to the child */
        (void) ioctl(0, TIOCGWINSZ, (char *)&win);
@@ -315,7 +315,7 @@ dooutput() {
        double oldtime=time(NULL), newtime;
        int flgs = 0;
        ssize_t wrt;
-       size_t fwrt;
+       ssize_t fwrt;
 
        (void) close(0);
 #ifdef HAVE_LIBUTIL