From fcb31de5806d4c18853916128f7028de7c88a63c Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 22 Mar 2002 03:43:38 +0000 Subject: 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); --- usr.bin/cdio/cdio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin') 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 . * 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; } -- cgit v1.2.3