From 5827fd0455639fbe916dbfeffc4162e7594e6697 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 5 Jul 2019 07:34:41 +0000 Subject: Fix spacing and comments, no code change. --- usr.bin/aucat/utils.c | 10 ++++++---- usr.bin/sndiod/utils.c | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/aucat/utils.c b/usr.bin/aucat/utils.c index 406204303b1..08471c2c147 100644 --- a/usr.bin/aucat/utils.c +++ b/usr.bin/aucat/utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.c,v 1.5 2017/01/03 07:25:16 ratchov Exp $ */ +/* $OpenBSD: utils.c,v 1.6 2019/07/05 07:34:40 ratchov Exp $ */ /* * Copyright (c) 2003-2012 Alexandre Ratchov * @@ -16,7 +16,7 @@ */ /* * log_xxx() routines are used to quickly store traces into a trace buffer. - * This allows trances to be collected during time sensitive operations without + * This allows traces to be collected during time sensitive operations without * disturbing them. The buffer can be flushed on standard error later, when * slow syscalls are no longer disruptive, e.g. at the end of the poll() loop. */ @@ -50,7 +50,7 @@ unsigned int log_sync = 1; /* if true, flush after each '\n' */ void log_flush(void) { - if (log_used == 0) + if (log_used == 0) return; write(STDERR_FILENO, log_buf, log_used); log_used = 0; @@ -140,7 +140,9 @@ panic(void) } /* - * allocate a (small) amount of memory, and abort if it fails + * allocate 'size' bytes of memory (with size > 0). This functions never + * fails (and never returns NULL), if there isn't enough memory then + * abort the program. */ void * xmalloc(size_t size) diff --git a/usr.bin/sndiod/utils.c b/usr.bin/sndiod/utils.c index 130bb293e96..175b61bae79 100644 --- a/usr.bin/sndiod/utils.c +++ b/usr.bin/sndiod/utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.c,v 1.4 2017/01/03 06:53:20 ratchov Exp $ */ +/* $OpenBSD: utils.c,v 1.5 2019/07/05 07:34:40 ratchov Exp $ */ /* * Copyright (c) 2003-2012 Alexandre Ratchov * @@ -16,7 +16,7 @@ */ /* * log_xxx() routines are used to quickly store traces into a trace buffer. - * This allows trances to be collected during time sensitive operations without + * This allows traces to be collected during time sensitive operations without * disturbing them. The buffer can be flushed on standard error later, when * slow syscalls are no longer disruptive, e.g. at the end of the poll() loop. */ @@ -50,7 +50,7 @@ unsigned int log_sync = 1; /* if true, flush after each '\n' */ void log_flush(void) { - if (log_used == 0) + if (log_used == 0) return; write(STDERR_FILENO, log_buf, log_used); log_used = 0; @@ -140,7 +140,9 @@ panic(void) } /* - * allocate a (small) amount of memory, and abort if it fails + * allocate 'size' bytes of memory (with size > 0). This functions never + * fails (and never returns NULL), if there isn't enough memory then + * abort the program. */ void * xmalloc(size_t size) -- cgit v1.2.3