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

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