summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-01-15 02:02:33 +0000
committermdodd <mdodd@FreeBSD.org>2003-01-15 02:02:33 +0000
commit3f76186ccea51c706ffda5d0f7d84b0c5185349d (patch)
tree27229aa69e5eda6f9bb25192716a669ab52288c1 /sys/dev
parent0fe7ecd1170afc5e85638da8cfa0e6b24ed25092 (diff)
downloadFreeBSD-src-3f76186ccea51c706ffda5d0f7d84b0c5185349d.zip
FreeBSD-src-3f76186ccea51c706ffda5d0f7d84b0c5185349d.tar.gz
- Add inline functions for {ll,l,}abs() to libkern.
- Remove hand rolled abs() functions.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/speaker/spkr.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index 4c8966e..de4c5ca 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -99,7 +99,6 @@ static void tone(unsigned int thz, unsigned int ticks);
static void rest(int ticks);
static void playinit(void);
static void playtone(int pitch, int value, int sustain);
-static int abs(int n);
static void playstring(char *cp, size_t slen);
/* emit tone of frequency thz for given number of ticks */
@@ -274,16 +273,6 @@ playtone(pitch, value, sustain)
}
}
-static int
-abs(n)
- int n;
-{
- if (n < 0)
- return(-n);
- else
- return(n);
-}
-
/* interpret and play an item from a notation string */
static void
playstring(cp, slen)
OpenPOWER on IntegriCloud