summaryrefslogtreecommitdiffstats
path: root/utils/snarffont.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-06-13 19:09:23 +0000
committerJeremy Katz <katzj@redhat.com>2005-06-13 19:09:23 +0000
commitefd4daedfbe9d1cd0809f08c244c419231575436 (patch)
tree17e936613588a0ad9262c9dbfac3d21c3b7f96e9 /utils/snarffont.c
parentd6ddca580702b6c469f3952966a96bc54f4a0836 (diff)
downloadanaconda-efd4daedfbe9d1cd0809f08c244c419231575436.tar.gz
anaconda-efd4daedfbe9d1cd0809f08c244c419231575436.tar.xz
anaconda-efd4daedfbe9d1cd0809f08c244c419231575436.zip
2005-06-13 Jeremy Katz <katzj@redhat.com>
* Makefile Makefile.inc mini-wm.c xmouse.c xutils.c isys/Makefile isys/isys.c isys/lang.c isys/smp.c isys/uncpio.c isys/gzlib/Makefile isys/gzlib/inflate.c loader2/Makefile loader2/driverdisk.c loader2/driverselect.c loader2/hdinstall.c loader2/init.c loader2/kickstart.c loader2/loader.c loader2/loadermisc.c loader2/moduleinfo.h loader2/modules.c loader2/net.c loader2/nfsinstall.c loader2/telnet.c loader2/undomounts.c loader2/urlinstall.c utils/Makefile utils/genhdlist.c utils/mapshdr.c utils/snarffont.c: Define cflags in one place (Makefile.inc) and use a consistent set everywhere. Fix up some of the compile warnings this uncovered. Also fix a few more things that -Wextra turned up.
Diffstat (limited to 'utils/snarffont.c')
-rw-r--r--utils/snarffont.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/snarffont.c b/utils/snarffont.c
index d6597526c..eaff9ccf9 100644
--- a/utils/snarffont.c
+++ b/utils/snarffont.c
@@ -19,7 +19,7 @@ int main(void) {
unsigned short map[E_TABSZ];
struct unipair descs[2048];
struct unimapdesc d;
- int fd;
+ int fd, i;
if ((fd = open("/dev/tty0", O_RDONLY)) < 0)
die("open");
@@ -41,10 +41,10 @@ int main(void) {
if (ioctl(fd, GIO_UNIMAP, &d))
die("GIO_UNIMAP");
- write(1, &cfo, sizeof(cfo));
- write(1, buf, sizeof(buf));
- write(1, map, sizeof(map));
- write(1, &d.entry_ct, sizeof(d.entry_ct));
- write(1, descs, d.entry_ct * sizeof(descs[0]));
+ i = write(1, &cfo, sizeof(cfo));
+ i = write(1, buf, sizeof(buf));
+ i = write(1, map, sizeof(map));
+ i = write(1, &d.entry_ct, sizeof(d.entry_ct));
+ i = write(1, descs, d.entry_ct * sizeof(descs[0]));
return 0;
}