diff options
-rw-r--r-- | chardiff_post.c | 4 | ||||
-rw-r--r-- | chardiff_pre.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chardiff_post.c b/chardiff_post.c index 9aa1790..54679ed 100644 --- a/chardiff_post.c +++ b/chardiff_post.c @@ -1,9 +1,9 @@ -/* Copyright (C) 2011-2014 Luke Shumaker <lukeshu@sbcglobal.net> */ +/* Copyright (C) 2011-2015 Luke Shumaker <lukeshu@sbcglobal.net> */ #include <stdio.h> int main (int argc, char* argv[]) { - char c; + int c; while ((c = getchar()) != EOF) { if (c=='\\') { char c2 = getchar(); diff --git a/chardiff_pre.c b/chardiff_pre.c index 9b334e1..2be38f5 100644 --- a/chardiff_pre.c +++ b/chardiff_pre.c @@ -1,9 +1,9 @@ -/* Copyright (C) 2011, 2013-2014 Luke Shumaker <lukeshu@sbcglobal.net> */ +/* Copyright (C) 2011, 2013-2015 Luke Shumaker <lukeshu@sbcglobal.net> */ #include <stdio.h> int main (int argc, char* argv[]) { - char c; + int c; while ((c = getchar()) != EOF) { switch (c) { case '\n': puts("\\n"); break; |