beep: Style cleanup. No functional change.

This commit is contained in:
Alexander von Gluck IV 2012-04-01 13:02:21 -05:00
parent 5cb635561c
commit e0153fad24

View File

@ -15,16 +15,16 @@
int
main(int argc, char* argv[])
{
// "beep" can only take a single optional event name
if (argc > 2
if (argc > 2
|| (argc == 2 && argv[1][0] == '-')) {
fprintf(stdout,"usage: beep [ eventname ]\n");
fprintf(stdout,"Event names are found in the Sounds preferences panel.\n");
fflush(stdout);
fprintf(stdout, "usage: beep [ eventname ]\n");
fprintf(stdout, "Event names are found in the "
"Sounds preferences panel.\n");
fflush(stdout);
return B_OK;
}
// if no event name is specified, play the default "Beep" event
if (argc == 1)
return beep();