summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-05-12 04:53:08 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-05-12 04:53:08 +0000
commitab33610a377a8f15d38839f92cded7e6e35030c5 (patch)
tree0a7e0453bdb8e0c8f3f85c29f1a19f6af042bbc1 /regress/lib
parent5daf49fc6508d787eee6b3a179e2ade8f902444f (diff)
Fix typos and spacing. From Andre Smagin <as at smagin.com>. Thanks.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libsndio/cap/cap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/lib/libsndio/cap/cap.c b/regress/lib/libsndio/cap/cap.c
index ce771a09ba6..b25d71d3676 100644
--- a/regress/lib/libsndio/cap/cap.c
+++ b/regress/lib/libsndio/cap/cap.c
@@ -51,20 +51,20 @@ cap_pr(struct sio_cap *cap)
fprintf(stderr, " %d", cap->rate[i]);
}
fprintf(stderr, "\n");
- }
+ }
}
void
usage(void) {
fprintf(stderr, "usage: cap [-pr]\n");
}
-
+
int
main(int argc, char **argv) {
int ch;
unsigned mode = SIO_PLAY | SIO_REC;
struct sio_hdl *hdl;
-
+
while ((ch = getopt(argc, argv, "pr")) != -1) {
switch(ch) {
case 'p':
@@ -80,7 +80,7 @@ main(int argc, char **argv) {
}
}
if (mode == 0) {
- fprintf(stderr, "-p and -r flags are mutualy exclusive\n");
+ fprintf(stderr, "-p and -r flags are mutually exclusive\n");
exit(1);
}
hdl = sio_open(NULL, mode, 0);
@@ -89,7 +89,7 @@ main(int argc, char **argv) {
exit(1);
}
if (!sio_getcap(hdl, &cap)) {
- fprintf(stderr, "sio_setcap() failed\n");
+ fprintf(stderr, "sio_getcap() failed\n");
exit(1);
}
cap_pr(&cap);