[PATCH 1/5] script: fix compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 misc-utils/script.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/misc-utils/script.c b/misc-utils/script.c
index 9367faf..3ca5e20 100644
--- a/misc-utils/script.c
+++ b/misc-utils/script.c
@@ -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
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux