summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2012-09-16 15:55:56 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2012-09-16 15:55:56 +0000
commit9e303d83d7a27ba3f2951fd48fb9019eba972185 (patch)
tree47ca30612cb0935a2427461937f602e715b6d19a
parent0bf4819e90622a32a98bdfbd34cdd6208c807ed1 (diff)
silent warnings
reported by ajacoutot@ ok gilles@ ajacoutot@
-rw-r--r--usr.sbin/smtpd/compress_backend.c6
-rw-r--r--usr.sbin/smtpd/compress_gzip.c10
-rw-r--r--usr.sbin/smtpd/smtpd.h10
3 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/smtpd/compress_backend.c b/usr.sbin/smtpd/compress_backend.c
index b285de302ed..802adf77ab6 100644
--- a/usr.sbin/smtpd/compress_backend.c
+++ b/usr.sbin/smtpd/compress_backend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress_backend.c,v 1.5 2012/08/30 19:33:25 chl Exp $ */
+/* $OpenBSD: compress_backend.c,v 1.6 2012/09/16 15:55:55 chl Exp $ */
/*
* Copyright (c) 2012 Charles Longeau <chl@openbsd.org>
@@ -55,13 +55,13 @@ uncompress_file(FILE *in, FILE *out)
}
size_t
-compress_buffer(const char *ib, size_t iblen, char *ob, size_t oblen)
+compress_buffer(char *ib, size_t iblen, char *ob, size_t oblen)
{
return env->sc_compress->compress_buffer(ib, iblen, ob, oblen);
}
size_t
-uncompress_buffer(const char *ib, size_t iblen, char *ob, size_t oblen)
+uncompress_buffer(char *ib, size_t iblen, char *ob, size_t oblen)
{
return env->sc_compress->uncompress_buffer(ib, iblen, ob, oblen);
}
diff --git a/usr.sbin/smtpd/compress_gzip.c b/usr.sbin/smtpd/compress_gzip.c
index 411d39594d2..bcdf7ead31d 100644
--- a/usr.sbin/smtpd/compress_gzip.c
+++ b/usr.sbin/smtpd/compress_gzip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress_gzip.c,v 1.3 2012/08/30 22:38:22 chl Exp $ */
+/* $OpenBSD: compress_gzip.c,v 1.4 2012/09/16 15:55:55 chl Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@openbsd.org>
@@ -43,8 +43,8 @@
static int compress_file_gzip(FILE *, FILE *);
static int uncompress_file_gzip(FILE *, FILE *);
-static size_t compress_buffer_gzip(const char *, size_t, char *, size_t);
-static size_t uncompress_buffer_gzip(const char *, size_t, char *, size_t);
+static size_t compress_buffer_gzip(char *, size_t, char *, size_t);
+static size_t uncompress_buffer_gzip(char *, size_t, char *, size_t);
struct compress_backend compress_gzip = {
compress_file_gzip,
@@ -112,7 +112,7 @@ end:
}
static size_t
-compress_buffer_gzip(const char *in, size_t inlen, char *out, size_t outlen)
+compress_buffer_gzip(char *in, size_t inlen, char *out, size_t outlen)
{
z_stream strm;
size_t ret = 0;
@@ -143,7 +143,7 @@ end:
}
static size_t
-uncompress_buffer_gzip(const char *in, size_t inlen, char *out, size_t outlen)
+uncompress_buffer_gzip(char *in, size_t inlen, char *out, size_t outlen)
{
z_stream strm;
size_t ret = 0;
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index b1e8716e450..4c911c8e536 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.349 2012/09/16 11:53:57 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.350 2012/09/16 15:55:55 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -816,8 +816,8 @@ struct queue_backend {
struct compress_backend {
int (*compress_file)(FILE *, FILE *);
int (*uncompress_file)(FILE *, FILE *);
- size_t (*compress_buffer)(const char *, size_t, char *, size_t);
- size_t (*uncompress_buffer)(const char *, size_t, char *, size_t);
+ size_t (*compress_buffer)(char *, size_t, char *, size_t);
+ size_t (*uncompress_buffer)(char *, size_t, char *, size_t);
};
/* auth structures */
@@ -1088,8 +1088,8 @@ void qwalk_close(void *);
struct compress_backend *compress_backend_lookup(const char *);
int compress_file(FILE *, FILE *);
int uncompress_file(FILE *, FILE *);
-size_t compress_buffer(const char *, size_t, char *, size_t);
-size_t uncompress_buffer(const char *, size_t, char *, size_t);
+size_t compress_buffer(char *, size_t, char *, size_t);
+size_t uncompress_buffer(char *, size_t, char *, size_t);
/* scheduler.c */
pid_t scheduler(void);