mirror of https://github.com/ericonr/sndio.git
Many typos in comments. From Michael W. Bombardieri. Thanks.
This commit is contained in:
parent
6c1c0d3ff6
commit
22a64d1845
|
@ -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') {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue