diff options
author | Jim Meyering <jim@meyering.net> | 1995-11-05 13:12:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-11-05 13:12:54 +0000 |
commit | 48f3bca87e2d52148f0d7dc1bae3a82a6bef9655 (patch) | |
tree | 3cac483f5fe735b932b05fad50ab648f12e097bd /src/csplit.c | |
parent | adf0ec700832ffd58e9beeef83dd272bc79a1f57 (diff) | |
download | coreutils-48f3bca87e2d52148f0d7dc1bae3a82a6bef9655.tar.xz |
Move prototypes after struct declarations.
Remove prototypes for xmalloc, xrealloc.
(new_control_record): Cast arg 1 to realloc.
Diffstat (limited to 'src/csplit.c')
-rw-r--r-- | src/csplit.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/csplit.c b/src/csplit.c index a63c03a4c..703b13f86 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -43,16 +43,6 @@ char *realloc (); #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif -int safe_read (); - -static char *xrealloc (char *p, unsigned int n); -static char *xmalloc (unsigned int n); -static void cleanup (void); -static void close_output_file (void); -static void create_output_file (void); -static void save_line_to_file (struct cstring *line); -static void usage (int status); - #ifndef TRUE #define FALSE 0 #define TRUE 1 @@ -129,6 +119,14 @@ struct buffer_record struct buffer_record *next; }; +int safe_read (); + +static void cleanup (void); +static void close_output_file (void); +static void create_output_file (void); +static void save_line_to_file (struct cstring *line); +static void usage (int status); + /* The name this program was run with. */ char *program_name; @@ -1064,7 +1062,8 @@ new_control_record (void) { control_allocated += ALLOC_SIZE; controls = (struct control *) - xrealloc (controls, sizeof (struct control) * control_allocated); + xrealloc ((char *) controls, + sizeof (struct control) * control_allocated); } p = &controls[control_used++]; p->regexpr = NULL; |