diff options
author | phk <phk@FreeBSD.org> | 2003-11-03 15:45:42 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-11-03 15:45:42 +0000 |
commit | 365ac18971283678590ad415921d0002cbac57f3 (patch) | |
tree | 3b994cef0c62a5699071878426e38f0fed2ce180 | |
parent | 52cdb57ae0b5d31ced5b8dcfc2b3f61f6dc30bb9 (diff) | |
download | FreeBSD-src-365ac18971283678590ad415921d0002cbac57f3.zip FreeBSD-src-365ac18971283678590ad415921d0002cbac57f3.tar.gz |
Get word spacing right in morse mode.
Fix a prototype.
-rw-r--r-- | sys/dev/led/led.c | 2 | ||||
-rw-r--r-- | sys/dev/led/led.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c index 2f89e2e..45012bd 100644 --- a/sys/dev/led/led.c +++ b/sys/dev/led/led.c @@ -173,6 +173,8 @@ led_write(dev_t dev, struct uio *uio, int ioflag) sbuf_cat(sb, "Ac"); else if (*s == ' ') sbuf_cat(sb, "B"); + else if (*s == '\n') + sbuf_cat(sb, "D"); } sbuf_cat(sb, "J"); break; diff --git a/sys/dev/led/led.h b/sys/dev/led/led.h index 70655af..5bd1ebe 100644 --- a/sys/dev/led/led.h +++ b/sys/dev/led/led.h @@ -16,6 +16,6 @@ __FBSDID("$FreeBSD$"); typedef void led_t(void *, int); dev_t led_create(led_t *func, void *priv, char const *name); -void led_destroy(dev_t); +void led_destroy(dev_t *dev); #endif /* _DEV_LED_H */ |