aboutsummaryrefslogtreecommitdiffstats
path: root/utils/base64.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 18:56:33 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 18:56:33 +0000
commit14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch)
tree7b1a3e41b75490fac4d45722c90a1847543c6796 /utils/base64.c
parent6b2b4167187fee09365271cca182866ecb029af3 (diff)
downloadrspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz
rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'utils/base64.c')
-rw-r--r--utils/base64.c18
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;