diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-19 20:03:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-19 20:03:34 +0000 |
commit | e77ae3a2c0328590b43447550bdb1284650b8236 (patch) | |
tree | 1e46d5cf36870771a4f3cedfe84f6161c3871131 /console-tools | |
parent | a3f09076ef5e9a2c26b4d0728cd066bba6c474e4 (diff) | |
download | busybox-w32-e77ae3a2c0328590b43447550bdb1284650b8236.tar.gz busybox-w32-e77ae3a2c0328590b43447550bdb1284650b8236.tar.bz2 busybox-w32-e77ae3a2c0328590b43447550bdb1284650b8236.zip |
Added sfdisk. Ststic-ified a bunch of stuff.
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/loadfont.c | 4 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index a10fa8a69..e44525d9c 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -75,7 +75,7 @@ do_loadfont(int fd, char *inbuf, int unit, int fontsize) { | |||
75 | for (i = 0; i < fontsize; i++) | 75 | for (i = 0; i < fontsize; i++) |
76 | memcpy(buf+(32*i), inbuf+(unit*i), unit); | 76 | memcpy(buf+(32*i), inbuf+(unit*i), unit); |
77 | 77 | ||
78 | #if defined( PIO_FONTX ) && !defined( sparc ) | 78 | #if defined( PIO_FONTX ) && !defined( __sparc__ ) |
79 | { | 79 | { |
80 | struct consolefontdesc cfd; | 80 | struct consolefontdesc cfd; |
81 | 81 | ||
@@ -196,7 +196,7 @@ loadnewfont(int fd) { | |||
196 | exit(1); | 196 | exit(1); |
197 | } | 197 | } |
198 | fontsize = ((psfhdr.mode & PSF_MODE512) ? 512 : 256); | 198 | fontsize = ((psfhdr.mode & PSF_MODE512) ? 512 : 256); |
199 | #if !defined( PIO_FONTX ) || defined( sparc ) | 199 | #if !defined( PIO_FONTX ) || defined( __sparc__ ) |
200 | if (fontsize != 256) { | 200 | if (fontsize != 256) { |
201 | fprintf(stderr, "Only fontsize 256 supported\n"); | 201 | fprintf(stderr, "Only fontsize 256 supported\n"); |
202 | exit(1); | 202 | exit(1); |
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index eb5a5dd4a..27865d58e 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -7,7 +7,7 @@ | |||
7 | #include <sys/ioctl.h> | 7 | #include <sys/ioctl.h> |
8 | 8 | ||
9 | 9 | ||
10 | const char loadkmap_usage[] = "loadkmap\n" | 10 | static const char loadkmap_usage[] = "loadkmap\n" |
11 | "\n" | 11 | "\n" |
12 | "\tLoad a binary keyboard translation table from standard input.\n" | 12 | "\tLoad a binary keyboard translation table from standard input.\n" |
13 | "\n"; | 13 | "\n"; |
@@ -48,7 +48,7 @@ loadkmap_main(int argc, char * * argv) | |||
48 | if (flags[i]==1){ | 48 | if (flags[i]==1){ |
49 | pos=0; | 49 | pos=0; |
50 | while (pos < ibuffsz) { | 50 | while (pos < ibuffsz) { |
51 | if ( (readsz = read(0,ibuff+pos,ibuffsz-pos)) < 0 ) { | 51 | if ( (readsz = read(0,(char *)ibuff+pos,ibuffsz-pos)) < 0 ) { |
52 | fprintf(stderr, "Error reading keymap: %s\n", | 52 | fprintf(stderr, "Error reading keymap: %s\n", |
53 | strerror(errno)); | 53 | strerror(errno)); |
54 | return 1; | 54 | return 1; |