diff options
author | phk <phk@FreeBSD.org> | 1996-01-15 10:28:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-01-15 10:28:44 +0000 |
commit | 866d9567ab4be9944b7635370adf8e0e0471549e (patch) | |
tree | a7eef651439ee5add1ef462aaa328b2f14d2a8c9 /sys/dev/scd | |
parent | 7a93e918354d6b4eef90ece6e4e7c6bf116a3da6 (diff) | |
download | FreeBSD-src-866d9567ab4be9944b7635370adf8e0e0471549e.zip FreeBSD-src-866d9567ab4be9944b7635370adf8e0e0471549e.tar.gz |
Make bin2bcd and bcd2bin global macroes instead of having local
implementations all over the place.
Diffstat (limited to 'sys/dev/scd')
-rw-r--r-- | sys/dev/scd/scd.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index 8f49d59..b313491 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -41,7 +41,7 @@ */ -/* $Id: scd.c,v 1.15 1995/12/10 19:44:52 bde Exp $ */ +/* $Id: scd.c,v 1.16 1995/12/10 20:10:23 bde Exp $ */ /* Please send any comments to micke@dynas.se */ @@ -153,8 +153,6 @@ static struct scd_data { } scd_data[NSCD]; /* prototypes */ -static int bcd2bin(bcd_t b); -static bcd_t bin2bcd(int b); static void hsg2msf(int hsg, bcd_t *msf); static int msf2hsg(bcd_t *msf); @@ -1090,18 +1088,6 @@ changed: goto harderr; } -static int -bcd2bin(bcd_t b) -{ - return (b >> 4) * 10 + (b & 15); -} - -static bcd_t -bin2bcd(int b) -{ - return ((b / 10) << 4) | (b % 10); -} - static void hsg2msf(int hsg, bcd_t *msf) { |