summaryrefslogtreecommitdiff
path: root/utils/unlit
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-08-01 01:07:12 +0100
committerIan Lynagh <igloo@earth.li>2011-08-01 01:07:12 +0100
commit96ebe2fa43b9ee98cd82d31760c57db0fea18495 (patch)
tree93e6995b75c08c84f2e7fc908ec3634cd64b0e92 /utils/unlit
parentb4a01788a1a833de64cba041c796fa35e0275220 (diff)
downloadhaskell-96ebe2fa43b9ee98cd82d31760c57db0fea18495.tar.gz
Remove some antiquated C constructs
Fixes validate on amd64/Linux with: SRC_CC_OPTS += -Wmissing-parameter-type SRC_CC_OPTS += -Wold-style-declaration SRC_CC_OPTS += -Wold-style-definition
Diffstat (limited to 'utils/unlit')
-rw-r--r--utils/unlit/unlit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/unlit/unlit.c b/utils/unlit/unlit.c
index 1269b81463..76877bec15 100644
--- a/utils/unlit/unlit.c
+++ b/utils/unlit/unlit.c
@@ -121,8 +121,7 @@ void myputc(char c, FILE *ostream)
/* As getc, but does TAB expansion */
int
-egetc(istream)
-FILE *istream;
+egetc(FILE *istream)
{
static int spleft = 0;
static int linepos = 0;
@@ -170,8 +169,7 @@ FILE *istream;
* stream.
*/
-line readline(istream,ostream)
-FILE *istream, *ostream; {
+line readline(FILE *istream, FILE *ostream) {
int c, c1;
char buf[100];
int i;