summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2012-08-30 19:33:26 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2012-08-30 19:33:26 +0000
commit992af837a8e67e4f5cf4c6aae93aa4c355642042 (patch)
tree10db110345c3baa7bec276ebc59d234eafbcc546 /usr.sbin/smtpd/smtpd.h
parentaea301efee5ad7534164bdef8e09060069d523b1 (diff)
switch compress_backend to use FILE * instead of file descriptors, like
crypto_backend ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index 92343b4fbf8..8705507dbf8 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.342 2012/08/30 18:25:44 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.343 2012/08/30 19:33:25 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -819,8 +819,8 @@ struct queue_backend {
};
struct compress_backend {
- int (*compress_file)(int, int);
- int (*uncompress_file)(int, int);
+ 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);
};
@@ -1100,8 +1100,8 @@ void qwalk_close(void *);
/* compress_backend.c */
struct compress_backend *compress_backend_lookup(const char *);
-int compress_file(int, int);
-int uncompress_file(int, int);
+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);