examples/cap: typos and spacing

From Andre Smagin <as at smagin.com>, thanks
This commit is contained in:
Alexandre Ratchov 2017-05-12 06:50:42 +02:00
parent 798435b1dc
commit 396b7496dc
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ print_cap(struct sio_cap *cap)
printf(" %d", cap->rate[i]);
}
printf("\n");
}
}
}
int
@ -59,7 +59,7 @@ 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':
@ -75,7 +75,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);