mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-17 09:06:50 +02:00
Protoize.
This commit is contained in:
@@ -54,8 +54,7 @@ static struct option const longopts[] =
|
||||
};
|
||||
|
||||
static void
|
||||
usage (status)
|
||||
int status;
|
||||
usage (int status)
|
||||
{
|
||||
if (status != 0)
|
||||
fprintf (stderr, _("Try `%s --help' for more information.\n"),
|
||||
@@ -87,9 +86,7 @@ With no FILE, or when FILE is -, read standard input.\n\
|
||||
Return 0 if successful, -1 if an error occurs. */
|
||||
|
||||
static int
|
||||
bsd_sum_file (file, print_name)
|
||||
char *file;
|
||||
int print_name;
|
||||
bsd_sum_file (char *file, int print_name)
|
||||
{
|
||||
register FILE *fp;
|
||||
register unsigned long checksum = 0; /* The checksum mod 2^16. */
|
||||
@@ -149,9 +146,7 @@ bsd_sum_file (file, print_name)
|
||||
Return 0 if successful, -1 if an error occurs. */
|
||||
|
||||
static int
|
||||
sysv_sum_file (file, print_name)
|
||||
char *file;
|
||||
int print_name;
|
||||
sysv_sum_file (char *file, int print_name)
|
||||
{
|
||||
int fd;
|
||||
unsigned char buf[8192];
|
||||
@@ -206,9 +201,7 @@ sysv_sum_file (file, print_name)
|
||||
}
|
||||
|
||||
void
|
||||
main (argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int errors = 0;
|
||||
int optc;
|
||||
|
||||
Reference in New Issue
Block a user