diff options
author | Robert de Bath <rdebath@poboxes.com> | 2002-04-17 22:05:01 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:48:46 +0200 |
commit | 352e3b3230dfc6746be6d53325ffe1e33efc5289 (patch) | |
tree | 4c169beb4657a1ed3a046817db01cbe49b17017c /ar/ar.c | |
parent | df538463687d768b6ee8247ff4412b78850e7404 (diff) | |
download | dev86-352e3b3230dfc6746be6d53325ffe1e33efc5289.tar.gz |
Import Dev86src-0.16.3.tar.gzv0.16.3
Diffstat (limited to 'ar/ar.c')
-rw-r--r-- | ar/ar.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -293,7 +293,7 @@ extern void replace_members (void); extern void touch_symdef_member (int outdesc, char *outname); extern void two_operations (void); extern void update_symdefs (struct mapelt *map, int archive_indesc); -extern void usage (char *s1, char *s2); +extern void usage (char *s1, int val); extern void write_archive (struct mapelt *map, int appendflag); extern void write_symdef_member (struct mapelt *mapelt, struct mapelt *map, int outdesc, char *outname); #endif @@ -507,7 +507,7 @@ main (argc, argv) break; default: - usage ("invalid operation %d", (void*)operation); + usage ("invalid operation %d", operation); } exit (0); @@ -1994,10 +1994,13 @@ update_symdefs (map, archive_indesc) /* Print error message and usage message, and exit. */ void -usage (s1, s2) - char *s1, *s2; +usage (s1, val) + char *s1; + int val; { - error (s1, s2); + char vbuf[16]; + sprintf(vbuf, "%d", val); + error (s1, vbuf); fprintf (stderr, "\ Usage: %s [d|m|p|q|r|t|x [[abi [position-name] [cilouv]] archive file...\n", program_name); |