summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-07-01 14:42:02 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-07-01 14:42:02 +0300
commitf09687094cbfbfd2b4373ba6a09fc40a1644bd85 (patch)
tree54426145657611ff0acb10ea0beb02d6eb467e89 /extra
parenta1267724cb1d1837026a3a5f49e55931038e43e7 (diff)
parent392ee571c175e160869a2ee0510f818e81510a03 (diff)
downloadmariadb-git-f09687094cbfbfd2b4373ba6a09fc40a1644bd85.tar.gz
Merge 10.4 into 10.5
Diffstat (limited to 'extra')
-rw-r--r--extra/replace.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/extra/replace.c b/extra/replace.c
index 7e94bfc36c3..8b20f812be0 100644
--- a/extra/replace.c
+++ b/extra/replace.c
@@ -148,9 +148,7 @@ int main(int argc, char *argv[])
/* reads options */
/* Initiates DEBUG - but no debugging here ! */
-static int static_get_options(argc,argv)
-register int *argc;
-register char **argv[];
+static int static_get_options(int *argc, char***argv)
{
int help,version;
char *pos;
@@ -218,10 +216,9 @@ register char **argv[];
} /* static_get_options */
-static int get_replace_strings(argc,argv,from_array,to_array)
-register int *argc;
-register char **argv[];
-POINTER_ARRAY *from_array,*to_array;
+static int get_replace_strings(int *argc, char ***argv,
+ POINTER_ARRAY *from_array,
+ POINTER_ARRAY *to_array)
{
char *pos;
@@ -974,9 +971,7 @@ static void free_buffer()
bytes read from disk.
*/
-static int fill_buffer_retaining(fd,n)
-File fd;
-int n;
+static int fill_buffer_retaining(File fd, int n)
{
int i;
@@ -1019,9 +1014,7 @@ int n;
/* Return 0 if convert is ok */
/* Global variable update is set if something was changed */
-static int convert_pipe(rep,in,out)
-REPLACE *rep;
-FILE *in,*out;
+static int convert_pipe(REPLACE *rep, FILE *in, FILE *out)
{
int retain,error;
uint length;