diff options
Diffstat (limited to 'utils/base64.c')
-rw-r--r-- | utils/base64.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/base64.c b/utils/base64.c index d1202db53..f6ec71125 100644 --- a/utils/base64.c +++ b/utils/base64.c @@ -1,11 +1,11 @@ -/*- - * Copyright 2016 Vsevolod Stakhov +/* + * Copyright 2024 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -20,16 +20,16 @@ #include "cryptobox.h" #include "unix-std.h" -static gdouble total_time = 0; +static double total_time = 0; static void -rspamd_process_file(const gchar *fname, gint decode) +rspamd_process_file(const char *fname, int decode) { - gint fd; + int fd; gpointer map; struct stat st; - guint8 *dest; + uint8_t *dest; gsize destlen; fd = open(fname, O_RDONLY); @@ -61,7 +61,7 @@ rspamd_process_file(const gchar *fname, gint decode) dest = rspamd_encode_base64(map, st.st_size, 80, &destlen); } - rspamd_printf("%*s", (gint) destlen, dest); + rspamd_printf("%*s", (int) destlen, dest); g_free(dest); munmap(map, st.st_size); @@ -69,7 +69,7 @@ rspamd_process_file(const gchar *fname, gint decode) int main(int argc, char **argv) { - gint i, start = 1, decode = 0; + int i, start = 1, decode = 0; if (argc > 2 && *argv[1] == '-') { start = 2; |