summaryrefslogtreecommitdiff
path: root/utils/hp2ps/Main.c
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/hp2ps/Main.c
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/hp2ps/Main.c')
-rw-r--r--utils/hp2ps/Main.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/utils/hp2ps/Main.c b/utils/hp2ps/Main.c
index 947ff46731..1c21d2b2cb 100644
--- a/utils/hp2ps/Main.c
+++ b/utils/hp2ps/Main.c
@@ -63,9 +63,7 @@ intish nidents;
floatish THRESHOLD_PERCENT = DEFAULT_THRESHOLD;
int TWENTY = DEFAULT_TWENTY;
-int main(argc, argv)
-int argc;
-char* argv[];
+int main(int argc, char *argv[])
{
programname = copystring(Basename(argv[0]));
@@ -195,8 +193,7 @@ typedef enum {POINTS, INCHES, MILLIMETRES} pim;
static pim Units PROTO((char *)); /* forward */
static floatish
-WidthInPoints(wstr)
- char *wstr;
+WidthInPoints(char *wstr)
{
floatish result;
@@ -221,8 +218,7 @@ WidthInPoints(wstr)
static pim
-Units(wstr)
- char* wstr;
+Units(char *wstr)
{
int i;
@@ -240,8 +236,7 @@ int i;
}
static FILE *
-Fp(rootname, filename, suffix, mode)
- char* rootname; char** filename; char* suffix; char* mode;
+Fp(char *rootname, char **filename, char *suffix, char *mode)
{
*filename = copystring2(rootname, suffix);