getc() returns an int, not a char

This commit is contained in:
pvalchev 2002-02-20 22:53:01 +00:00
parent ae03d53a24
commit 62bcba5536
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-DinoU_c,v 1.1 2002/02/20 22:53:01 pvalchev Exp $
--- DinoU.c.orig Thu Jul 29 12:58:51 1999
+++ DinoU.c Wed Feb 20 15:48:10 2002
@@ -199,7 +199,7 @@ void
ScanMoves(FILE * fp, DinoWidget w, int moves)
{
int face, position, direction, style, control, k;
- char c;
+ int c;
for (k = 0; k < moves; k++) {
while ((c = getc(fp)) != EOF && c != SYMBOL);
@@ -228,7 +228,7 @@ void
ScanStartPosition(FILE * fp, DinoWidget w)
{
int face, position, num;
- char c;
+ int c;
while ((c = getc(fp)) != EOF && c != SYMBOL);
for (face = 0; face < MAXFACES; face++)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Dino_c,v 1.1 2002/02/20 22:53:01 pvalchev Exp $
--- Dino.c.orig Thu Jul 29 12:58:51 1999
+++ Dino.c Wed Feb 20 15:47:53 2002
@@ -483,7 +483,7 @@ void
GetDino(DinoWidget w, XEvent * event, char **args, int nArgs)
{
FILE *fp;
- char c;
+ int c;
int mode, orient, practice, moves;
dinoCallbackStruct cb;