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

diff -Naur ofbis-0.1.1/src/debug.c ofbis-0.1.1-patched/src/debug.c
--- ofbis-0.1.1/src/debug.c	2000-02-17 15:39:35.000000000 +0100
+++ ofbis-0.1.1-patched/src/debug.c	2003-06-26 18:05:24.000000000 +0200
@@ -5,7 +5,7 @@
 FBfinfdump ( FB *f )
 {
   printf("Fixed info:\n\nid: %s\n",f->finf.id);
-  printf("smem_start: %p\n",f->finf.smem_start);
+  printf("smem_start: %d\n",f->finf.smem_start);
   printf("smem_len: %d\n",f->finf.smem_len);
   printf("type: %d\n",f->finf.type);
   printf("type_aux: %d\n",f->finf.type_aux);
diff -Naur ofbis-0.1.1/src/display_packed/pp_16.c ofbis-0.1.1-patched/src/display_packed/pp_16.c
--- ofbis-0.1.1/src/display_packed/pp_16.c	2000-02-17 15:39:42.000000000 +0100
+++ ofbis-0.1.1-patched/src/display_packed/pp_16.c	2003-06-26 17:51:26.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.1.1/src/display_packed/pp_32.c ofbis-0.1.1-patched/src/display_packed/pp_32.c
--- ofbis-0.1.1/src/display_packed/pp_32.c	2000-02-17 15:39:42.000000000 +0100
+++ ofbis-0.1.1-patched/src/display_packed/pp_32.c	2003-06-26 17:51:41.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.1.1/src/error.c ofbis-0.1.1-patched/src/error.c
--- ofbis-0.1.1/src/error.c	2000-02-17 15:39:35.000000000 +0100
+++ ofbis-0.1.1-patched/src/error.c	2003-06-26 17:59:55.000000000 +0200
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
 #include <errno.h>
diff -Naur ofbis-0.1.1/src/generic/line.c ofbis-0.1.1-patched/src/generic/line.c
--- ofbis-0.1.1/src/generic/line.c	2000-02-17 15:39:47.000000000 +0100
+++ ofbis-0.1.1-patched/src/generic/line.c	2003-06-26 17:53:02.000000000 +0200
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include "ofbis.h"
 #include "common.h"
 
diff -Naur ofbis-0.1.1/src/kbd.c ofbis-0.1.1-patched/src/kbd.c
--- ofbis-0.1.1/src/kbd.c	2000-02-17 15:39:36.000000000 +0100
+++ ofbis-0.1.1-patched/src/kbd.c	2003-06-26 18:00:25.000000000 +0200
@@ -210,6 +210,7 @@
       */
     break;
   default:
+    break;
   }
   ev->keycode = key;
   ev->state = state;
diff -Naur ofbis-0.1.1/src/vt.c ofbis-0.1.1-patched/src/vt.c
--- ofbis-0.1.1/src/vt.c	2003-06-26 18:02:29.000000000 +0200
+++ ofbis-0.1.1-patched/src/vt.c	2003-06-26 18:00:40.000000000 +0200
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <signal.h>
 #include <sys/types.h>
