summaryrefslogtreecommitdiffstats
path: root/sys/dev/led
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-11-03 15:45:42 +0000
committerphk <phk@FreeBSD.org>2003-11-03 15:45:42 +0000
commit365ac18971283678590ad415921d0002cbac57f3 (patch)
tree3b994cef0c62a5699071878426e38f0fed2ce180 /sys/dev/led
parent52cdb57ae0b5d31ced5b8dcfc2b3f61f6dc30bb9 (diff)
downloadFreeBSD-src-365ac18971283678590ad415921d0002cbac57f3.zip
FreeBSD-src-365ac18971283678590ad415921d0002cbac57f3.tar.gz
Get word spacing right in morse mode.
Fix a prototype.
Diffstat (limited to 'sys/dev/led')
-rw-r--r--sys/dev/led/led.c2
-rw-r--r--sys/dev/led/led.h2
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 */
OpenPOWER on IntegriCloud