[openfirmware] r924 - in clients/lib: . x86
svn at openfirmware.info
svn at openfirmware.info
Mon Sep 8 23:42:22 CEST 2008
Author: wmb
Date: 2008-09-08 23:42:22 +0200 (Mon, 08 Sep 2008)
New Revision: 924
Modified:
clients/lib/stdio.h
clients/lib/x86/makefile
Log:
Client library: Define the stdio buffer as unsigned char instead of char
to prevent sign extension of character values in the fgetc return value.
Modified: clients/lib/stdio.h
===================================================================
--- clients/lib/stdio.h 2008-09-07 19:23:04 UTC (rev 923)
+++ clients/lib/stdio.h 2008-09-08 21:42:22 UTC (rev 924)
@@ -5,8 +5,8 @@
int bufc;
int readonly;
int dirty;
- char *inbufp;
- char buf[128];
+ unsigned char *inbufp;
+ unsigned char buf[128];
} FILE;
extern FILE *stdin;
Modified: clients/lib/x86/makefile
===================================================================
--- clients/lib/x86/makefile 2008-09-07 19:23:04 UTC (rev 923)
+++ clients/lib/x86/makefile 2008-09-08 21:42:22 UTC (rev 924)
@@ -45,7 +45,7 @@
clean:
- rm *~ *.o hello* *.a
+ rm -f *~ *.o hello* *.a
dist:
More information about the openfirmware
mailing list