aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorKurt Lidl <lidl@FreeBSD.org>2017-05-06 04:17:48 +0000
committerKurt Lidl <lidl@FreeBSD.org>2017-05-06 04:17:48 +0000
commitbe4b7933989ece7e02d7c2dfb6d1fd3b8d5e49c2 (patch)
treed2cff0cea92ab2dbb3effdf0d1a7c9396c4213ad /libexec/ftpd
parent1e773aeb99484a11d0b8537946fb723360dccf39 (diff)
downloadsrc-be4b7933989ece7e02d7c2dfb6d1fd3b8d5e49c2.tar.gz
src-be4b7933989ece7e02d7c2dfb6d1fd3b8d5e49c2.zip
Notes
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/blacklist.c4
-rw-r--r--libexec/ftpd/blacklist_client.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/libexec/ftpd/blacklist.c b/libexec/ftpd/blacklist.c
index 85f90b5352d7..7aca755f7d2d 100644
--- a/libexec/ftpd/blacklist.c
+++ b/libexec/ftpd/blacklist.c
@@ -33,8 +33,8 @@
#include <stdlib.h>
#include <unistd.h>
-#include "blacklist_client.h"
#include <blacklist.h>
+#include "blacklist_client.h"
static struct blacklist *blstate;
extern int use_blacklist;
@@ -48,7 +48,7 @@ blacklist_init(void)
}
void
-blacklist_notify(int action, int fd, char *msg)
+blacklist_notify(int action, int fd, const char *msg)
{
if (blstate == NULL)
diff --git a/libexec/ftpd/blacklist_client.h b/libexec/ftpd/blacklist_client.h
index 7ac6fd11ed27..391b49c9bdfd 100644
--- a/libexec/ftpd/blacklist_client.h
+++ b/libexec/ftpd/blacklist_client.h
@@ -31,14 +31,16 @@
#ifndef BLACKLIST_CLIENT_H
#define BLACKLIST_CLIENT_H
+#ifndef BLACKLIST_API_ENUM
enum {
BLACKLIST_AUTH_OK = 0,
BLACKLIST_AUTH_FAIL
};
+#endif
#ifdef USE_BLACKLIST
void blacklist_init(void);
-void blacklist_notify(int, int, char *);
+void blacklist_notify(int, int, const char *);
#define BLACKLIST_INIT() blacklist_init()
#define BLACKLIST_NOTIFY(x, y, z) blacklist_notify(x, y, z)