diff options
author | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
commit | bc68cd14ccaebc17e7e03a08e51fddfb91007624 (patch) | |
tree | beb32cedafc6232bf8a49fe90f0769d471ea6791 /console-tools/loadfont.c | |
parent | dae6aa28598cb2353291f18ca52e768c3259165a (diff) | |
download | busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.gz busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.bz2 busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.zip |
Patch from Denis Vlasenko turning static const int (which gets emitted into
the busybox binary) into enums (which don't).
Diffstat (limited to 'console-tools/loadfont.c')
-rw-r--r-- | console-tools/loadfont.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 31c6d2495..31221e080 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -21,13 +21,15 @@ | |||
21 | #include <endian.h> | 21 | #include <endian.h> |
22 | #include "busybox.h" | 22 | #include "busybox.h" |
23 | 23 | ||
24 | static const int PSF_MAGIC1 = 0x36; | 24 | enum{ |
25 | static const int PSF_MAGIC2 = 0x04; | 25 | PSF_MAGIC1 = 0x36, |
26 | 26 | PSF_MAGIC2 = 0x04, | |
27 | static const int PSF_MODE512 = 0x01; | 27 | |
28 | static const int PSF_MODEHASTAB = 0x02; | 28 | PSF_MODE512 = 0x01, |
29 | static const int PSF_MAXMODE = 0x03; | 29 | PSF_MODEHASTAB = 0x02, |
30 | static const int PSF_SEPARATOR = 0xFFFF; | 30 | PSF_MAXMODE = 0x03, |
31 | PSF_SEPARATOR = 0xFFFF | ||
32 | }; | ||
31 | 33 | ||
32 | struct psf_header { | 34 | struct psf_header { |
33 | unsigned char magic1, magic2; /* Magic number */ | 35 | unsigned char magic1, magic2; /* Magic number */ |