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

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