svn commit: r216599 - head/usr.sbin/lmcconfig

Ulrich Spoerlein uqs at FreeBSD.org
Mon Dec 20 19:08:07 UTC 2010


Author: uqs
Date: Mon Dec 20 19:08:07 2010
New Revision: 216599
URL: http://svn.freebsd.org/changeset/base/216599

Log:
  Fix type used to hold fgetc(3) output, this should help arm and powerpc
  which have char == unsigned char

Modified:
  head/usr.sbin/lmcconfig/lmcconfig.c

Modified: head/usr.sbin/lmcconfig/lmcconfig.c
==============================================================================
--- head/usr.sbin/lmcconfig/lmcconfig.c	Mon Dec 20 19:07:56 2010	(r216598)
+++ head/usr.sbin/lmcconfig/lmcconfig.c	Mon Dec 20 19:08:07 2010	(r216599)
@@ -1940,7 +1940,7 @@ static void load_xilinx(char *name)
   FILE *f;
   char *ucode;
   int i, length;
-  char c;
+  int c;
 
   if (verbose) printf("Load firmware from file %s...\n", name);
   if ((f = fopen(name, "r")) == 0)


More information about the svn-src-all mailing list