Skip to content

Commit

Permalink
ar: tighten up types
Browse files Browse the repository at this point in the history
This matters for targets that do stack clean up in the called function
  • Loading branch information
EtchedPixels committed Jul 20, 2024
1 parent f1c7207 commit adb745e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Applications/ar/ar.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CHDR chdr;
u_int options;
char *archive, *envtmp, *posarg, *posname;
static void badoptions(char *arg);
static void usage();
static void usage(void);

/*
* main --
Expand All @@ -73,7 +73,7 @@ int main(int argc, char **argv)
extern int optind;
int c;
char *p;
int (*fcall)();
int (*fcall)(char **argv);

if (argc < 3)
usage();
Expand Down Expand Up @@ -220,7 +220,7 @@ static void badoptions(char *arg)
usage();
}

static void usage()
static void usage(void)
{
fprintf(stderr, "usage: ar -d [-Tv] archive file ...\n");
fprintf(stderr, "\tar -m [-Tv] archive file ...\n");
Expand Down

0 comments on commit adb745e

Please sign in to comment.