This little patch fixes a compiler warning (found with WARNINGS turned
on), unambiguates the printit function, and removes an unnecessary
comment. Program behaviour the same.
This is my first patch to you folks, sorry if I screwed up somewhere.
Index: games/caesar/caesar.c
===================================================================
RCS file: /cvs/src/games/caesar/caesar.c,v
retrieving revision 1.15
diff -u -p -w -r1.15 caesar.c
--- games/caesar/caesar.c 22 Feb 2010 18:57:42 -0000 1.15
+++ games/caesar/caesar.c 3 Jul 2014 13:36:59 -0000
@@ -129,7 +129,7 @@ main(int argc, char *argv[])
putchar(ROTATE(ch, winner));
}
printit(winner);
- /* NOT REACHED */
+ exit(0);
}
void
@@ -142,7 +142,6 @@ printit(int rot)
while ((ch = getchar()) != EOF)
putchar(ROTATE(ch, rot));
- exit(0);
}
void