Skip to content

Commit

Permalink
Merge pull request #11 from robbie-hatley/rh1
Browse files Browse the repository at this point in the history
Update xmountains.c
  • Loading branch information
spbooth authored Jul 17, 2024
2 parents d5301c8 + 6ffea57 commit 5ed87c3
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions xmountains.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ int optind=1;
char *optarg;
int opterr=1;

int my_getopt (argc, argv, pat)
int argc;
char **argv;
char *pat;
int my_getopt (int argc, char **argv, char *pat)
{
char *flag;

Expand Down Expand Up @@ -107,11 +104,7 @@ int mapwid;
"-window-id 0xXXXX" option. (Maybe this can be done with
getopt, but I can't be bothered to figure it out.)
*/
static unsigned long
window_id_kludge (argcP, argv)
int *argcP;
char **argv;

static unsigned long window_id_kludge (int *argcP, char **argv)
{
unsigned long id = 0;
int i;
Expand Down Expand Up @@ -143,9 +136,10 @@ void print_algorithm();
void seed_uni(int ijkl);
void plot_column(Graph *g);

main (argc,argv)
int argc;
char **argv;
/* Note, Robbie Hatley, 2024-07-16: When installing xmountains as an AUR package,
"main" no-longer compiles without being declared "int", presumably due to
recent changes in gcc. */
int main (int argc, char **argv)
{
int i;
int e_events=FALSE;
Expand Down

0 comments on commit 5ed87c3

Please sign in to comment.