Many typos in comments. From Michael W. Bombardieri. Thanks.

This commit is contained in:
Alexandre Ratchov 2017-01-03 08:08:17 +01:00
parent 6c1c0d3ff6
commit 22a64d1845
3 changed files with 5 additions and 5 deletions

View File

@ -1427,7 +1427,7 @@ slot_new(struct dev *d, char *who, struct slotops *ops, void *arg, int mode)
struct slot *s; 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++) { for (i = 0, p = who; ; p++) {
if (i == SLOT_NAMEMAX - 1 || *p == '\0') { if (i == SLOT_NAMEMAX - 1 || *p == '\0') {

View File

@ -98,7 +98,7 @@ midi_new(struct midiops *ops, void *arg, int mode)
ep->mode = mode; ep->mode = mode;
/* /*
* the output buffer is the client intput * the output buffer is the client input
*/ */
if (ep->mode & MODE_MIDIIN) if (ep->mode & MODE_MIDIIN)
abuf_init(&ep->obuf, MIDI_BUFSZ); abuf_init(&ep->obuf, MIDI_BUFSZ);
@ -148,7 +148,7 @@ midi_link(struct midi *ep, struct midi *peer)
panic(); panic();
} }
#endif #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; peer->txmask |= ep->self;
} }
} }

View File

@ -96,7 +96,7 @@ log_putx(unsigned long num)
} }
/* /*
* store a unsigned decimal in the log * store an unsigned decimal in the log
*/ */
void void
log_putu(unsigned long num) 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 * void *
xmalloc(size_t size) xmalloc(size_t size)