summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-02-24 15:49:09 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-02-24 15:49:09 +0000
commit594f2e29d24f711f8eec1e3ec341cdacadf85b1c (patch)
tree5074e522070f05841589264ae05d5134a7f97601
parented87d2375ffd276e39df84228dc6deb06bb21284 (diff)
const correctness, string literals are const char *, no functional change
from Joerg Sonnenberger joerg(at)britannica(dot)bec(dot)de
-rw-r--r--libexec/ftp-proxy/ftp-proxy.c8
-rw-r--r--libexec/ftp-proxy/util.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/libexec/ftp-proxy/ftp-proxy.c b/libexec/ftp-proxy/ftp-proxy.c
index f619e14d515..c526a5f57a7 100644
--- a/libexec/ftp-proxy/ftp-proxy.c
+++ b/libexec/ftp-proxy/ftp-proxy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp-proxy.c,v 1.39 2005/01/19 20:58:59 millert Exp $ */
+/* $OpenBSD: ftp-proxy.c,v 1.40 2005/02/24 15:49:08 dhartmei Exp $ */
/*
* Copyright (c) 1996-2001
@@ -146,8 +146,8 @@ char ClientName[NI_MAXHOST];
char RealServerName[NI_MAXHOST];
char OurName[NI_MAXHOST];
-char *User = "proxy";
-char *Group;
+const char *User = "proxy";
+const char *Group;
extern int Debug_Level;
extern int Use_Rdns;
@@ -388,7 +388,7 @@ void
log_control_command (char *cmd, int client)
{
/* log an ftp control command or reply */
- char *logstring;
+ const char *logstring;
int level = LOG_DEBUG;
if (!Verbose)
diff --git a/libexec/ftp-proxy/util.h b/libexec/ftp-proxy/util.h
index 057ed26f6a6..ce1e9159393 100644
--- a/libexec/ftp-proxy/util.h
+++ b/libexec/ftp-proxy/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.4 2004/07/06 19:49:11 dhartmei Exp $ */
+/* $OpenBSD: util.h,v 1.5 2005/02/24 15:49:08 dhartmei Exp $ */
/*
* Copyright (c) 1996-2001
@@ -46,7 +46,7 @@ struct csiob {
int line_buffer_size, io_buffer_size, io_buffer_len, next_byte;
unsigned char *io_buffer, *line_buffer;
struct sockaddr_in sa, real_sa;
- char *who;
+ const char *who;
char alive, got_eof, data_available;
int send_oob_flags;
};