Blame SOURCES/ncompress-4.2.4.4-silence-gcc.patch

02babe
diff --git a/compress42.c b/compress42.c
02babe
index c3f6b35..834c2f2 100644
02babe
--- a/compress42.c
02babe
+++ b/compress42.c
02babe
@@ -704,7 +704,7 @@ main(argc, argv)
02babe
 		REG4	char		**fileptr;
02babe
 	int i;
02babe
 
02babe
-    	if (fgnd_flag = (signal(SIGINT, SIG_IGN) != SIG_IGN))
02babe
+	if ((fgnd_flag = (signal(SIGINT, SIG_IGN)) != SIG_IGN))
02babe
 			signal(SIGINT, (SIG_TYPE)abort_compress);
02babe
 
02babe
 		signal(SIGTERM, (SIG_TYPE)abort_compress);
02babe
@@ -1016,8 +1016,8 @@ comprexx(fileptr)
02babe
 
02babe
 					if (infstat.st_nlink > 1 && (!force))
02babe
 					{
02babe
-			  			fprintf(stderr, "%s has %d other links: unchanged\n",
02babe
-										tempname, infstat.st_nlink - 1);
02babe
+						fprintf(stderr, "%s has %ld other links: unchanged\n",
02babe
+										tempname, (long)(infstat.st_nlink - 1));
02babe
 						exit_code = 1;
02babe
 			  			return;
02babe
 					}
02babe
@@ -1318,7 +1318,7 @@ compdir(dir)
02babe
 		** think it's worth it. -- Dave Mack
02babe
 		*/
02babe
 
02babe
-		while (dp = readdir(dirp))
02babe
+		while ((dp = readdir(dirp)))
02babe
 		{
02babe
 			if (dp->d_ino == 0)
02babe
 				continue;