From: Jim Meyering Date: Sun, 15 Dec 2002 20:54:29 +0000 (+0000) Subject: Remove all uses of `PARAMS'. X-Git-Tag: COREUTILS-4_5_5~393 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5f14f167e47616fc4f74666678ede320299d5df;p=platform%2Fupstream%2Fcoreutils.git Remove all uses of `PARAMS'. --- diff --git a/src/chmod.c b/src/chmod.c index cc0e0f2..be8262b 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -53,8 +53,7 @@ enum Verbosity V_off }; -static int change_dir_mode PARAMS ((const char *dir, - const struct mode_change *changes)); +static int change_dir_mode (const char *dir, const struct mode_change *changes); /* The name the program was run with. */ char *program_name; diff --git a/src/copy.c b/src/copy.c index 14f16c4..862ce46 100644 --- a/src/copy.c +++ b/src/copy.c @@ -83,13 +83,13 @@ struct F_triple int euidaccess (); int yesno (); -static int copy_internal PARAMS ((const char *src_path, const char *dst_path, - int new_dst, dev_t device, - struct dir_list *ancestors, - const struct cp_options *x, - int command_line_arg, - int *copy_into_self, - int *rename_succeeded)); +static int copy_internal (const char *src_path, const char *dst_path, + int new_dst, dev_t device, + struct dir_list *ancestors, + const struct cp_options *x, + int command_line_arg, + int *copy_into_self, + int *rename_succeeded); /* Pointers to the file names: they're used in the diagnostic that is issued when we detect the user is trying to copy a directory into itself. */ diff --git a/src/copy.h b/src/copy.h index eb13062..d21b478 100644 --- a/src/copy.h +++ b/src/copy.h @@ -178,7 +178,7 @@ int lstat (); on systems with an lstat function that does not dereference symlinks that are specified with a trailing slash. */ # if ! LSTAT_FOLLOWS_SLASHED_SYMLINK -int rpl_lstat PARAMS((const char *, struct stat *)); +int rpl_lstat (const char *, struct stat *); # undef lstat # define lstat rpl_lstat # endif @@ -189,7 +189,7 @@ int rename (); on systems with a rename function that fails for a source path specified with a trailing slash. */ # if RENAME_TRAILING_SLASH_BUG -int rpl_rename PARAMS((const char *, const char *)); +int rpl_rename (const char *, const char *); # undef rename # define rename rpl_rename # endif @@ -200,8 +200,8 @@ copy PARAMS ((const char *src_path, const char *dst_path, int *copy_into_self, int *rename_succeeded)); void -dest_info_init PARAMS ((struct cp_options *)); +dest_info_init (struct cp_options *); void -src_info_init PARAMS ((struct cp_options *)); +src_info_init (struct cp_options *); #endif diff --git a/src/cp-hash.h b/src/cp-hash.h index be56219..1f376e1 100644 --- a/src/cp-hash.h +++ b/src/cp-hash.h @@ -1,5 +1,5 @@ -void hash_init PARAMS ((void)); -void forget_all PARAMS ((void)); -void forget_created PARAMS ((ino_t ino, dev_t dev)); -char *remember_copied PARAMS ((const char *node, ino_t ino, dev_t dev)); -int remember_created PARAMS ((const char *path)); +void hash_init (void); +void forget_all (void); +void forget_created (ino_t ino, dev_t dev); +char *remember_copied (const char *node, ino_t ino, dev_t dev); +int remember_created (const char *path); diff --git a/src/csplit.c b/src/csplit.c index 4e9d083..4419319 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -116,11 +116,11 @@ struct buffer_record struct buffer_record *next; }; -static void close_output_file PARAMS ((void)); -static void create_output_file PARAMS ((void)); -static void delete_all_files PARAMS ((void)); -static void save_line_to_file PARAMS ((const struct cstring *line)); -void usage PARAMS ((int status)); +static void close_output_file (void); +static void create_output_file (void); +static void delete_all_files (void); +static void save_line_to_file (const struct cstring *line); +void usage (int status); /* The name this program was run with. */ char *program_name; diff --git a/src/date.c b/src/date.c index 52cf71a..37295c7 100644 --- a/src/date.c +++ b/src/date.c @@ -43,7 +43,7 @@ int putenv (); -static void show_date PARAMS ((const char *format, struct timespec when)); +static void show_date (const char *format, struct timespec when); enum Time_spec { diff --git a/src/expr.c b/src/expr.c index 9b0cb99..a578137 100644 --- a/src/expr.c +++ b/src/expr.c @@ -74,10 +74,10 @@ static char **args; /* The name this program was run with. */ char *program_name; -static VALUE *eval PARAMS ((void)); -static int nomoreargs PARAMS ((void)); -static int null PARAMS ((VALUE *v)); -static void printv PARAMS ((VALUE *v)); +static VALUE *eval (void); +static int nomoreargs (void); +static int null (VALUE *v); +static void printv (VALUE *v); void usage (int status) diff --git a/src/fmt.c b/src/fmt.c index 986651c..66f0983 100644 --- a/src/fmt.c +++ b/src/fmt.c @@ -148,23 +148,23 @@ struct Word /* Forward declarations. */ -static void set_prefix PARAMS ((char *p)); -static void fmt PARAMS ((FILE *f)); -static bool get_paragraph PARAMS ((FILE *f)); -static int get_line PARAMS ((FILE *f, int c)); -static int get_prefix PARAMS ((FILE *f)); -static int get_space PARAMS ((FILE *f, int c)); -static int copy_rest PARAMS ((FILE *f, int c)); -static bool same_para PARAMS ((int c)); -static void flush_paragraph PARAMS ((void)); -static void fmt_paragraph PARAMS ((void)); -static void check_punctuation PARAMS ((WORD *w)); -static COST base_cost PARAMS ((WORD *this)); -static COST line_cost PARAMS ((WORD *next, int len)); -static void put_paragraph PARAMS ((WORD *finish)); -static void put_line PARAMS ((WORD *w, int indent)); -static void put_word PARAMS ((WORD *w)); -static void put_space PARAMS ((int space)); +static void set_prefix (char *p); +static void fmt (FILE *f); +static bool get_paragraph (FILE *f); +static int get_line (FILE *f, int c); +static int get_prefix (FILE *f); +static int get_space (FILE *f, int c); +static int copy_rest (FILE *f, int c); +static bool same_para (int c); +static void flush_paragraph (void); +static void fmt_paragraph (void); +static void check_punctuation (WORD *w); +static COST base_cost (WORD *this); +static COST line_cost (WORD *next, int len); +static void put_paragraph (WORD *finish); +static void put_line (WORD *w, int indent); +static void put_word (WORD *w); +static void put_space (int space); /* The name this program was run with. */ const char *program_name; diff --git a/src/id.c b/src/id.c index c9a9d8b..b2bbf8f 100644 --- a/src/id.c +++ b/src/id.c @@ -46,10 +46,10 @@ gid_t getegid (); int getugroups (); -static void print_user PARAMS ((uid_t uid)); -static void print_group PARAMS ((gid_t gid)); -static void print_group_list PARAMS ((const char *username)); -static void print_full_info PARAMS ((const char *username)); +static void print_user (uid_t uid); +static void print_group (gid_t gid); +static void print_group_list (const char *username); +static void print_full_info (const char *username); /* The name this program was run with. */ char *program_name; diff --git a/src/install.c b/src/install.c index c27c3b7..0204ead 100644 --- a/src/install.c +++ b/src/install.c @@ -78,19 +78,19 @@ int isdir (); int stat (); -static int change_timestamps PARAMS ((const char *from, const char *to)); -static int change_attributes PARAMS ((const char *path)); -static int copy_file PARAMS ((const char *from, const char *to, - const struct cp_options *x)); -static int install_file_to_path PARAMS ((const char *from, const char *to, - const struct cp_options *x)); -static int install_file_in_dir PARAMS ((const char *from, const char *to_dir, - const struct cp_options *x)); -static int install_file_in_file PARAMS ((const char *from, const char *to, - const struct cp_options *x)); -static void get_ids PARAMS ((void)); -static void strip PARAMS ((const char *path)); -void usage PARAMS ((int status)); +static int change_timestamps (const char *from, const char *to); +static int change_attributes (const char *path); +static int copy_file (const char *from, const char *to, + const struct cp_options *x); +static int install_file_to_path (const char *from, const char *to, + const struct cp_options *x); +static int install_file_in_dir (const char *from, const char *to_dir, + const struct cp_options *x); +static int install_file_in_file (const char *from, const char *to, + const struct cp_options *x); +static void get_ids (void); +static void strip (const char *path); +void usage (int status); /* The name this program was run with, for error messages. */ char *program_name; diff --git a/src/ls.c b/src/ls.c index 402b239..bf0f6c4 100644 --- a/src/ls.c +++ b/src/ls.c @@ -147,7 +147,7 @@ int wcwidth (); on systems with an lstat function that does not dereference symlinks that are specified with a trailing slash. */ #if ! LSTAT_FOLLOWS_SLASHED_SYMLINK -int rpl_lstat PARAMS((const char *, struct stat *)); +int rpl_lstat (const char *, struct stat *); # undef lstat # define lstat(Name, Stat_buf) rpl_lstat(Name, Stat_buf) #endif @@ -253,42 +253,41 @@ time_t time (); char *getgroup (); char *getuser (); -static size_t quote_name PARAMS ((FILE *out, const char *name, - struct quoting_options const *options)); -static char *make_link_path PARAMS ((const char *path, const char *linkname)); -static int decode_switches PARAMS ((int argc, char **argv)); -static int file_interesting PARAMS ((const struct dirent *next)); -static uintmax_t gobble_file PARAMS ((const char *name, enum filetype type, - int explicit_arg, const char *dirname)); -static void print_color_indicator PARAMS ((const char *name, mode_t mode, - int linkok)); -static void put_indicator PARAMS ((const struct bin_str *ind)); -static int put_indicator_direct PARAMS ((const struct bin_str *ind)); -static int length_of_file_name_and_frills PARAMS ((const struct fileinfo *f)); -static void add_ignore_pattern PARAMS ((const char *pattern)); -static void attach PARAMS ((char *dest, const char *dirname, const char *name)); -static void clear_files PARAMS ((void)); -static void extract_dirs_from_files PARAMS ((const char *dirname, - int ignore_dot_and_dot_dot)); -static void get_link_name PARAMS ((const char *filename, struct fileinfo *f)); -static void indent PARAMS ((int from, int to)); -static void init_column_info PARAMS ((void)); -static void print_current_files PARAMS ((void)); -static void print_dir PARAMS ((const char *name, const char *realname)); -static void print_file_name_and_frills PARAMS ((const struct fileinfo *f)); -static void print_horizontal PARAMS ((void)); -static void print_long_format PARAMS ((const struct fileinfo *f)); -static void print_many_per_line PARAMS ((void)); -static void print_name_with_quoting PARAMS ((const char *p, mode_t mode, - int linkok, - struct obstack *stack)); -static void prep_non_filename_text PARAMS ((void)); -static void print_type_indicator PARAMS ((mode_t mode)); -static void print_with_commas PARAMS ((void)); -static void queue_directory PARAMS ((const char *name, const char *realname)); -static void sort_files PARAMS ((void)); -static void parse_ls_color PARAMS ((void)); -void usage PARAMS ((int status)); +static size_t quote_name (FILE *out, const char *name, + struct quoting_options const *options); +static char *make_link_path (const char *path, const char *linkname); +static int decode_switches (int argc, char **argv); +static int file_interesting (const struct dirent *next); +static uintmax_t gobble_file (const char *name, enum filetype type, + int explicit_arg, const char *dirname); +static void print_color_indicator (const char *name, mode_t mode, int linkok); +static void put_indicator (const struct bin_str *ind); +static int put_indicator_direct (const struct bin_str *ind); +static int length_of_file_name_and_frills (const struct fileinfo *f); +static void add_ignore_pattern (const char *pattern); +static void attach (char *dest, const char *dirname, const char *name); +static void clear_files (void); +static void extract_dirs_from_files (const char *dirname, + int ignore_dot_and_dot_dot); +static void get_link_name (const char *filename, struct fileinfo *f); +static void indent (int from, int to); +static void init_column_info (void); +static void print_current_files (void); +static void print_dir (const char *name, const char *realname); +static void print_file_name_and_frills (const struct fileinfo *f); +static void print_horizontal (void); +static void print_long_format (const struct fileinfo *f); +static void print_many_per_line (void); +static void print_name_with_quoting (const char *p, mode_t mode, + int linkok, + struct obstack *stack); +static void prep_non_filename_text (void); +static void print_type_indicator (mode_t mode); +static void print_with_commas (void); +static void queue_directory (const char *name, const char *realname); +static void sort_files (void); +static void parse_ls_color (void); +void usage (int status); /* The name the program was run with, stripped of any leading path. */ char *program_name; @@ -2573,7 +2572,7 @@ typedef void const *V; static inline int cmp_ctime (struct fileinfo const *a, struct fileinfo const *b, - int (*cmp) PARAMS ((char const *, char const *))) + int (*cmp) (char const *, char const *)) { int diff = CTIME_CMP (b->stat, a->stat); return diff ? diff : cmp (a->name, b->name); @@ -2585,7 +2584,7 @@ static int rev_str_ctime (V a, V b) { return compstr_ctime (b, a); } static inline int cmp_mtime (struct fileinfo const *a, struct fileinfo const *b, - int (*cmp) PARAMS((char const *, char const *))) + int (*cmp) (char const *, char const *)) { int diff = MTIME_CMP (b->stat, a->stat); return diff ? diff : cmp (a->name, b->name); @@ -2597,7 +2596,7 @@ static int rev_str_mtime (V a, V b) { return compstr_mtime (b, a); } static inline int cmp_atime (struct fileinfo const *a, struct fileinfo const *b, - int (*cmp) PARAMS ((char const *, char const *))) + int (*cmp) (char const *, char const *)) { int diff = ATIME_CMP (b->stat, a->stat); return diff ? diff : cmp (a->name, b->name); @@ -2609,7 +2608,7 @@ static int rev_str_atime (V a, V b) { return compstr_atime (b, a); } static inline int cmp_size (struct fileinfo const *a, struct fileinfo const *b, - int (*cmp) PARAMS ((char const *, char const *))) + int (*cmp) (char const *, char const *)) { int diff = longdiff (b->stat.st_size, a->stat.st_size); return diff ? diff : cmp (a->name, b->name); @@ -2629,7 +2628,7 @@ static int rev_cmp_version (V a, V b) { return compare_version (b, a); } static inline int cmp_name (struct fileinfo const *a, struct fileinfo const *b, - int (*cmp) PARAMS ((char const *, char const *))) + int (*cmp) (char const *, char const *)) { return cmp (a->name, b->name); } @@ -2643,7 +2642,7 @@ static int rev_str_name (V a, V b) { return compstr_name (b, a); } static inline int cmp_extension (struct fileinfo const *a, struct fileinfo const *b, - int (*cmp) PARAMS ((char const *, char const *))) + int (*cmp) (char const *, char const *)) { char const *base1 = strrchr (a->name, '.'); char const *base2 = strrchr (b->name, '.'); @@ -2660,7 +2659,7 @@ static int rev_str_extension (V a, V b) { return compstr_extension (b, a); } static void sort_files (void) { - int (*func) PARAMS ((V, V)); + int (*func) (V, V); switch (sort_type) { diff --git a/src/od.c b/src/od.c index 6ccf99c..734ba87 100644 --- a/src/od.c +++ b/src/od.c @@ -102,7 +102,7 @@ struct tspec { enum output_format fmt; enum size_spec size; - void (*print_function) PARAMS ((size_t, const char *, const char *)); + void (*print_function) (size_t, const char *, const char *); char *fmt_string; int hexl_mode_trailer; int field_width; @@ -193,7 +193,7 @@ static uintmax_t pseudo_offset; /* Function that accepts an address and an optional following char, and prints the address and char to stdout. */ -static void (*format_address) PARAMS ((uintmax_t, char)); +static void (*format_address) (uintmax_t, char); /* The number of input bytes to skip before formatting and writing. */ static uintmax_t n_bytes_to_skip = 0; @@ -676,7 +676,7 @@ decode_one_format (const char *s_orig, const char *s, const char **next, enum output_format fmt; const char *pre_fmt_string; char *fmt_string; - void (*print_function) PARAMS ((size_t, const char *, const char *)); + void (*print_function) (size_t, const char *, const char *); const char *p; unsigned int c; unsigned int field_width = 0; diff --git a/src/pathchk.c b/src/pathchk.c index f0110b5..e76abe7 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -105,7 +105,7 @@ extern int errno; # define NAME_MAX_FOR(p) NAME_MAX #endif -static int validate_path PARAMS ((char *path, int portability)); +static int validate_path (char *path, int portability); /* The name this program was run with. */ char *program_name; diff --git a/src/pr.c b/src/pr.c index 0516e17..13d5d7e 100644 --- a/src/pr.c +++ b/src/pr.c @@ -392,10 +392,10 @@ struct COLUMN status; /* Status of the file pointer. */ /* Func to print lines in this col. */ - int (*print_func) PARAMS ((struct COLUMN *)); + int (*print_func) (struct COLUMN *); /* Func to print/store chars in this col. */ - void (*char_func) PARAMS ((int)); + void (*char_func) (int); int current_line; /* Index of current place in line_vector. */ int lines_stored; /* Number of lines stored in buff. */ @@ -414,35 +414,35 @@ typedef struct COLUMN COLUMN; #define NULLCOL (COLUMN *)0 -static int char_to_clump PARAMS ((int c)); -static int read_line PARAMS ((COLUMN *p)); -static int print_page PARAMS ((void)); -static int print_stored PARAMS ((COLUMN *p)); -static int open_file PARAMS ((char *name, COLUMN *p)); -static int skip_to_page PARAMS ((int page)); -static void print_header PARAMS ((void)); -static void pad_across_to PARAMS ((int position)); -static void add_line_number PARAMS ((COLUMN *p)); -static void getoptarg PARAMS ((char *arg, char switch_char, char *character, - int *number)); -void usage PARAMS ((int status)); -static void print_files PARAMS ((int number_of_files, char **av)); -static void init_parameters PARAMS ((int number_of_files)); -static void init_header PARAMS ((char *filename, int desc)); -static int init_fps PARAMS ((int number_of_files, char **av)); -static void init_funcs PARAMS ((void)); -static void init_store_cols PARAMS ((void)); -static void store_columns PARAMS ((void)); -static void balance PARAMS ((int total_stored)); -static void store_char PARAMS ((int c)); -static void pad_down PARAMS ((int lines)); -static void read_rest_of_line PARAMS ((COLUMN *p)); -static void skip_read PARAMS ((COLUMN *p, int column_number)); -static void print_char PARAMS ((int c)); -static void cleanup PARAMS ((void)); -static void first_last_page PARAMS ((char *pages)); -static void print_sep_string PARAMS ((void)); -static void separator_string PARAMS ((const char *optarg_S)); +static int char_to_clump (int c); +static int read_line (COLUMN *p); +static int print_page (void); +static int print_stored (COLUMN *p); +static int open_file (char *name, COLUMN *p); +static int skip_to_page (int page); +static void print_header (void); +static void pad_across_to (int position); +static void add_line_number (COLUMN *p); +static void getoptarg (char *arg, char switch_char, char *character, + int *number); +void usage (int status); +static void print_files (int number_of_files, char **av); +static void init_parameters (int number_of_files); +static void init_header (char *filename, int desc); +static int init_fps (int number_of_files, char **av); +static void init_funcs (void); +static void init_store_cols (void); +static void store_columns (void); +static void balance (int total_stored); +static void store_char (int c); +static void pad_down (int lines); +static void read_rest_of_line (COLUMN *p); +static void skip_read (COLUMN *p, int column_number); +static void print_char (int c); +static void cleanup (void); +static void first_last_page (char *pages); +static void print_sep_string (void); +static void separator_string (const char *optarg_S); /* The name under which this program was invoked. */ char *program_name; diff --git a/src/remove.c b/src/remove.c index 4302559..d3062f2 100644 --- a/src/remove.c +++ b/src/remove.c @@ -72,7 +72,7 @@ enum Prompt_action /* On systems with an lstat function that accepts the empty string, arrange to make lstat calls go through the wrapper function. */ #if HAVE_LSTAT_EMPTY_STRING_BUG -int rpl_lstat PARAMS((const char *, struct stat *)); +int rpl_lstat (const char *, struct stat *); # define lstat(Name, Stat_buf) rpl_lstat(Name, Stat_buf) #endif diff --git a/src/shred.c b/src/shred.c index 1570212..1e6354c 100644 --- a/src/shred.c +++ b/src/shred.c @@ -110,7 +110,7 @@ #include "inttostr.h" #include "quotearg.h" /* For quotearg_colon */ #include "quote.h" /* For quotearg_colon */ -char *xstrdup PARAMS ((char const *)); +char *xstrdup (char const *); #ifndef O_NOCTTY # define O_NOCTTY 0 /* This is a very optional frill */ diff --git a/src/sort.c b/src/sort.c index 456dc37..3138dce 100644 --- a/src/sort.c +++ b/src/sort.c @@ -400,7 +400,7 @@ cleanup (void) /* Report MESSAGE for FILE, then clean up and exit. */ -static void die PARAMS ((char const *, char const *)) ATTRIBUTE_NORETURN; +static void die (char const *, char const *) ATTRIBUTE_NORETURN; static void die (char const *message, char const *file) { @@ -2024,7 +2024,7 @@ insertkey (struct keyfield *key) /* Report a bad field specification SPEC, with extra info MSGID. */ -static void badfieldspec PARAMS ((char const *, char const *)) +static void badfieldspec (char const *, char const *) ATTRIBUTE_NORETURN; static void badfieldspec (char const *spec, char const *msgid) diff --git a/src/stty.c b/src/stty.c index f8ba197..fa1078d 100644 --- a/src/stty.c +++ b/src/stty.c @@ -407,34 +407,31 @@ static struct control_info control_info[] = {NULL, 0, 0} }; -static const char *visible PARAMS ((unsigned int ch)); -static unsigned long baud_to_value PARAMS ((speed_t speed)); -static int recover_mode PARAMS ((char *arg, struct termios *mode)); -static int screen_columns PARAMS ((void)); -static int set_mode PARAMS ((struct mode_info *info, int reversed, - struct termios *mode)); -static long integer_arg PARAMS ((const char *s)); -static speed_t string_to_baud PARAMS ((const char *arg)); -static tcflag_t *mode_type_flag PARAMS ((enum mode_type type, - struct termios *mode)); -static void display_all PARAMS ((struct termios *mode, int fd, - const char *device_name)); -static void display_changed PARAMS ((struct termios *mode)); -static void display_recoverable PARAMS ((struct termios *mode)); -static void display_settings PARAMS ((enum output_type output_type, - struct termios *mode, int fd, - const char *device_name)); -static void display_speed PARAMS ((struct termios *mode, int fancy)); -static void display_window_size PARAMS ((int fancy, int fd, - const char *device_name)); -static void sane_mode PARAMS ((struct termios *mode)); -static void set_control_char PARAMS ((struct control_info *info, - const char *arg, - struct termios *mode)); -static void set_speed PARAMS ((enum speed_setting type, const char *arg, - struct termios *mode)); -static void set_window_size PARAMS ((int rows, int cols, int fd, - const char *device_name)); +static const char *visible (unsigned int ch); +static unsigned long baud_to_value (speed_t speed); +static int recover_mode (char *arg, struct termios *mode); +static int screen_columns (void); +static int set_mode (struct mode_info *info, int reversed, + struct termios *mode); +static long integer_arg (const char *s); +static speed_t string_to_baud (const char *arg); +static tcflag_t *mode_type_flag (enum mode_type type, struct termios *mode); +static void display_all (struct termios *mode, int fd, const char *device_name); +static void display_changed (struct termios *mode); +static void display_recoverable (struct termios *mode); +static void display_settings (enum output_type output_type, + struct termios *mode, int fd, + const char *device_name); +static void display_speed (struct termios *mode, int fancy); +static void display_window_size (int fancy, int fd, const char *device_name); +static void sane_mode (struct termios *mode); +static void set_control_char (struct control_info *info, + const char *arg, + struct termios *mode); +static void set_speed (enum speed_setting type, const char *arg, + struct termios *mode); +static void set_window_size (int rows, int cols, int fd, + const char *device_name); /* The width of the screen, for output wrapping. */ static int max_col; diff --git a/src/sum.c b/src/sum.c index 13d7288..f3fa819 100644 --- a/src/sum.c +++ b/src/sum.c @@ -221,7 +221,7 @@ main (int argc, char **argv) int errors = 0; int optc; int files_given; - int (*sum_func) PARAMS ((const char *, int)) = bsd_sum_file; + int (*sum_func) (const char *, int) = bsd_sum_file; program_name = argv[0]; setlocale (LC_ALL, ""); diff --git a/src/tee.c b/src/tee.c index 9a1b3ce..5c11dcc 100644 --- a/src/tee.c +++ b/src/tee.c @@ -32,7 +32,7 @@ #define AUTHORS N_ ("Mike Parker, Richard M. Stallman, and David MacKenzie") -static int tee PARAMS ((int nfiles, const char **files)); +static int tee (int nfiles, const char **files); /* If nonzero, append to output files rather than truncating them. */ static int append; diff --git a/src/test.c b/src/test.c index 41af32c..4b8fbae 100644 --- a/src/test.c +++ b/src/test.c @@ -109,22 +109,22 @@ static int pos; /* The offset of the current argument in ARGV. */ static int argc; /* The number of arguments present in ARGV. */ static char **argv; /* The argument list. */ -static int unop PARAMS ((int op)); -static int binop PARAMS ((char *s)); -static int unary_operator PARAMS ((void)); -static int binary_operator PARAMS ((void)); -static int two_arguments PARAMS ((void)); -static int three_arguments PARAMS ((void)); -static int posixtest PARAMS ((void)); - -static int expr PARAMS ((void)); -static int term PARAMS ((void)); -static int and PARAMS ((void)); -static int or PARAMS ((void)); - -static void test_syntax_error PARAMS ((char const *format, char const *arg)) +static int unop (int op); +static int binop (char *s); +static int unary_operator (void); +static int binary_operator (void); +static int two_arguments (void); +static int three_arguments (void); +static int posixtest (void); + +static int expr (void); +static int term (void); +static int and (void); +static int or (void); + +static void test_syntax_error (char const *format, char const *arg) ATTRIBUTE_NORETURN; -static void beyond PARAMS ((void)) ATTRIBUTE_NORETURN; +static void beyond (void) ATTRIBUTE_NORETURN; static void test_syntax_error (char const *format, char const *arg)