Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit f8f786bb authored by deuce's avatar deuce

Fix Intel CC warnings.

parent ddd8d8e6
......@@ -553,7 +553,7 @@ void ciolib_gotoxy(int x, int y)
cio_api.gotoxy(nx,ny);
}
void ciolib_textmode(mode)
void ciolib_textmode(int mode)
{
CIOLIB_INIT();
......
......@@ -109,6 +109,7 @@
#define CONSOLE_CLIPBOARD XA_PRIMARY
#include <threadwrap.h>
#include <genwrap.h>
#include "console.h"
......@@ -377,6 +378,8 @@ struct {
#define HWM 16
void resize_window(void);
int KbdEmpty(void);
int load_font(char *filename, int width, int height, int scale);
void tty_pause()
{
......@@ -513,7 +516,7 @@ void
video_update()
{
static clock_t lastupd=-1;
static clock_started=0;
static int clock_started=0;
clock_t upd;
upd=msclock();
......@@ -1671,7 +1674,7 @@ KbdRead()
}
int
KbdEmpty()
KbdEmpty(void)
{
return(K_NEXT == K_FREE);
}
......
......@@ -82,6 +82,7 @@ int tty_peek(int flag);
int tty_kbhit(void);
void tty_beep(void);
void x_win_title(const char *title);
int console_init(void);
#define TTYF_BLOCK 0x00000008
#define TTYF_POLL 0x00000010
......
......@@ -31,6 +31,7 @@
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -1125,6 +1125,7 @@ int curs_hidemouse(void)
return(-1);
#endif
*/
return(-1);
}
int curs_showmouse(void)
......@@ -1136,4 +1137,5 @@ int curs_showmouse(void)
#endif
return(-1);
*/
return(-1);
}
......@@ -97,7 +97,7 @@ struct mouse_state {
struct mouse_state state;
int mouse_events=0;
static mouse_initialized=0;
static int mouse_initialized=0;
void init_mouse(void)
{
......
......@@ -33,6 +33,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
#include <threadwrap.h>
......@@ -73,6 +74,7 @@ int x_puttext(int sx, int sy, int ex, int ey, void *fill)
vmem[y*DpyCols+x]=sch;
}
}
return(1);
}
int x_gettext(int sx, int sy, int ex, int ey, void *fill)
......@@ -105,6 +107,7 @@ int x_gettext(int sx, int sy, int ex, int ey, void *fill)
*(out++)=sch >> 8;
}
}
return(1);
}
void x_textattr(int attr)
......
......@@ -33,6 +33,7 @@
#ifdef __unix__
#include "ciolib.h"
#include "console.h"
#ifdef __cplusplus
extern "C" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment