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

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