Package: ofbis
Version: 0.2.0
Author: Guillem Jover <guillem@hadrons.org>
Status: sent
Description:
 Fix multiple compiler warnings.

diff -Naur ofbis-0.2.0/src/display_packed/pp_16.c ofbis-0.2.0-warn/src/display_packed/pp_16.c
--- ofbis-0.2.0/src/display_packed/pp_16.c	2000-02-17 15:39:42.000000000 +0100
+++ ofbis-0.2.0-warn/src/display_packed/pp_16.c	2003-10-09 07:18:19.000000000 +0200
@@ -40,7 +40,8 @@
   switch (f->writemode) {
   case FB_XOR:
     while (x++ <= j) {
-      *pixel++ = ~(u_int16_t)*pixel;
+      *pixel = ~(u_int16_t)*pixel;
+      *pixel++;
     }
     break;
     
diff -Naur ofbis-0.2.0/src/display_packed/pp_32.c ofbis-0.2.0-warn/src/display_packed/pp_32.c
--- ofbis-0.2.0/src/display_packed/pp_32.c	2000-02-17 15:39:42.000000000 +0100
+++ ofbis-0.2.0-warn/src/display_packed/pp_32.c	2003-10-09 07:18:19.000000000 +0200
@@ -40,7 +40,8 @@
   switch (f->writemode) {
   case FB_XOR:
     while (x++ <= j) {
-      *pixel++ = ~(u_int32_t)*pixel;
+      *pixel = ~(u_int32_t)*pixel;
+      *pixel++;
     }
     break;
     
diff -Naur ofbis-0.2.0/src/error.c ofbis-0.2.0-warn/src/error.c
--- ofbis-0.2.0/src/error.c	2000-02-17 15:39:35.000000000 +0100
+++ ofbis-0.2.0-warn/src/error.c	2003-10-09 07:18:19.000000000 +0200
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdarg.h>
+#include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 #include "error.h"
diff -Naur ofbis-0.2.0/src/generic/line.c ofbis-0.2.0-warn/src/generic/line.c
--- ofbis-0.2.0/src/generic/line.c	2000-02-17 15:39:47.000000000 +0100
+++ ofbis-0.2.0-warn/src/generic/line.c	2003-10-09 07:18:19.000000000 +0200
@@ -1,5 +1,6 @@
 #include "ofbis.h"
 #include "common.h"
+#include <stdlib.h>
 
 /* Use Bresenham's line algorithm instead */
 /* I think it's faster, and it's definitely shorter code
diff -Naur ofbis-0.2.0/src/kbd.c ofbis-0.2.0-warn/src/kbd.c
--- ofbis-0.2.0/src/kbd.c	2000-02-17 15:39:36.000000000 +0100
+++ ofbis-0.2.0-warn/src/kbd.c	2003-10-09 07:18:19.000000000 +0200
@@ -209,7 +209,6 @@
       SETORCLEAR(Mode_Home);
       */
     break;
-  default:
   }
   ev->keycode = key;
   ev->state = state;
