From 8bee4eb990273c3654431467ba6618eb916f030a Mon Sep 17 00:00:00 2001 From: dscho Date: Sun, 15 May 2005 13:57:51 +0000 Subject: ANSIfy, fix some warnings from Linus' sparse --- vncterm/VNCommand.c | 2 ++ vncterm/VNConsole.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'vncterm') diff --git a/vncterm/VNCommand.c b/vncterm/VNCommand.c index fc07bdb..d53605a 100644 --- a/vncterm/VNCommand.c +++ b/vncterm/VNCommand.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE +#define _POSIX_SOURCE #include "VNConsole.h" #include "vga.h" #ifdef LIBVNCSERVER_HAVE_FCNTL_H diff --git a/vncterm/VNConsole.c b/vncterm/VNConsole.c index ec3002f..b25c4bd 100644 --- a/vncterm/VNConsole.c +++ b/vncterm/VNConsole.c @@ -24,7 +24,6 @@ unsigned char colourMap16[16*3]={ void MakeColourMap16(vncConsolePtr c) { - int i,j; rfbColourMap* colourMap=&(c->screen->colourMap); if(colourMap->count) free(colourMap->data.bytes); -- cgit v1.2.1