Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/daemon/old_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#endif


int old_main()
int old_main(void)
{
int ctlfd, newfd;
struct sockaddr_un ctladdr;
Expand Down
4 changes: 2 additions & 2 deletions src/headers/daemon.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void gpm_exited(void);
void gpm_killed(int signo);

int open_console(const int mode);
int old_main();
int old_main(void);

int processConn(int fd);
int processMouse(int fd, Gpm_Event *event, Gpm_Type *type, int kd_mode);
Expand Down Expand Up @@ -234,7 +234,7 @@ void check_uniqueness(void);
void check_kill(void);

/* gpm.c */
int old_main();
int old_main(void);


#endif
5 changes: 4 additions & 1 deletion src/headers/gpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ Gpm_Roi * Gpm_LowerRoi(Gpm_Roi *which, Gpm_Roi *after);
/* libcurses.c */
/* #include <curses.h> Hmm... seems risky */

extern int Gpm_Wgetch();
/* Forward-declare ncurses WINDOW type for C23 compatibility.
* In C23, empty () means (void), so we need a proper prototype. */
struct _win_st;
extern int Gpm_Wgetch(struct _win_st *);
#define Gpm_Getch() (Gpm_Wgetch(NULL))

/* libxtra.c */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/libcurses.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static Gpm_Event ev;
/* JD patch 11/08/1998 */
#define MAXNBPREVCHAR 4 /* I don't think more is usefull, JD */
static int nbprevchar=0, prevchar[MAXNBPREVCHAR];
extern int gpm_convert_event(char *data, Gpm_Event *event);
extern int gpm_convert_event(unsigned char *data, Gpm_Event *event);
int c; unsigned char mdata[4];

/* JD patch 11/08/1998 */
Expand Down