diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-03-22 03:43:38 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-03-22 03:43:38 +0000 |
commit | fcb31de5806d4c18853916128f7028de7c88a63c (patch) | |
tree | 42d22111d2d83fe305405cc2c14e9c426998484b /usr.bin/cdio | |
parent | e275d3e0530cdcc7a5fe1ba81f9f2418e4917d8d (diff) |
Add missing prototypes.
Convert lba2msf definition to ANSI-style, so that it matches the prototype
Old-style function declarations undergo argument promotion, and thus:
void
f(a)
char a;
{}
actually matches
void f(int a);
Diffstat (limited to 'usr.bin/cdio')
-rw-r--r-- | usr.bin/cdio/cdio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cdio/cdio.c b/usr.bin/cdio/cdio.c index 835fd2187fd..ed77d9b4592 100644 --- a/usr.bin/cdio/cdio.c +++ b/usr.bin/cdio/cdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cdio.c,v 1.22 2002/03/21 17:43:48 espie Exp $ */ +/* $OpenBSD: cdio.c,v 1.23 2002/03/22 03:43:37 espie Exp $ */ /* * Compact Disc Control Utility by Serge V. Vakulenko <vak@cronyx.ru>. * Based on the non-X based CD player by Jean-Marc Zucconi and @@ -127,6 +127,9 @@ unsigned int msf2lba(u_char m, u_char s, u_char f); int play_blocks(int blk, int len); int run(int cmd, char *arg); char *parse(char *buf, int *cmd); +void help(void); +void usage(void); +char *strstatus(int); void help() @@ -918,10 +921,7 @@ lba2msf(lba, m, s, f) } unsigned int -msf2lba(m, s, f) - u_char m; - u_char s; - u_char f; +msf2lba(u_char m, u_char s, u_char f) { return (((m * 60) + s) * 75 + f) - 150; } |