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/mcd | |
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/mcd')
-rw-r--r-- | sys/dev/mcd/mcd.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index ba3a989..783df8e 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -40,7 +40,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.56 1995/12/22 13:09:39 phk Exp $ + * $Id: mcd.c,v 1.57 1995/12/22 15:52:07 phk Exp $ */ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -184,8 +184,6 @@ static int mcd_get(int unit, char *buf, int nmax); static int mcd_setflags(int unit,struct mcd_data *cd); static int mcd_getstat(int unit,int sflg); static int mcd_send(int unit, int cmd,int nretrys); -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); static int mcd_volinfo(int unit); @@ -938,18 +936,6 @@ mcd_send(int unit, int cmd,int nretrys) return 0; } -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) { |