From 22a64d18458ed6af9021260d93f0aa924d58d5e9 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 3 Jan 2017 08:08:17 +0100 Subject: [PATCH] Many typos in comments. From Michael W. Bombardieri. Thanks. --- sndiod/dev.c | 2 +- sndiod/midi.c | 4 ++-- sndiod/utils.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sndiod/dev.c b/sndiod/dev.c index 6285dd8..494f074 100644 --- a/sndiod/dev.c +++ b/sndiod/dev.c @@ -1427,7 +1427,7 @@ slot_new(struct dev *d, char *who, struct slotops *ops, void *arg, int mode) struct slot *s; /* - * create a ``valid'' control name (lowcase, remove [^a-z], trucate) + * create a ``valid'' control name (lowcase, remove [^a-z], truncate) */ for (i = 0, p = who; ; p++) { if (i == SLOT_NAMEMAX - 1 || *p == '\0') { diff --git a/sndiod/midi.c b/sndiod/midi.c index b9eeb4c..b879f7d 100644 --- a/sndiod/midi.c +++ b/sndiod/midi.c @@ -98,7 +98,7 @@ midi_new(struct midiops *ops, void *arg, int mode) ep->mode = mode; /* - * the output buffer is the client intput + * the output buffer is the client input */ if (ep->mode & MODE_MIDIIN) abuf_init(&ep->obuf, MIDI_BUFSZ); @@ -148,7 +148,7 @@ midi_link(struct midi *ep, struct midi *peer) panic(); } #endif - /* ep has empry buffer, so no need to call midi_tickets() */ + /* ep has empty buffer, so no need to call midi_tickets() */ peer->txmask |= ep->self; } } diff --git a/sndiod/utils.c b/sndiod/utils.c index dafe6f3..a1cfa8a 100644 --- a/sndiod/utils.c +++ b/sndiod/utils.c @@ -96,7 +96,7 @@ log_putx(unsigned long num) } /* - * store a unsigned decimal in the log + * store an unsigned decimal in the log */ void log_putu(unsigned long num) @@ -140,7 +140,7 @@ panic(void) } /* - * allocate a (small) abount of memory, and abort if it fails + * allocate a (small) amount of memory, and abort if it fails */ void * xmalloc(size_t size)