From 408574f1b0a32430c7fb0ddab79052ea64086d6d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 27 Oct 1999 23:51:52 +0000 Subject: [PATCH] some const-poisoning git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7244 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index f3ea47a39..257d66283 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -135,10 +135,10 @@ static void ack (char *); static void myoob (int); static int checkuser (char *, char *); static int checkaccess (char *); -static FILE *dataconn (char *, off_t, char *); +static FILE *dataconn (const char *, off_t, const char *); static void dolog (struct sockaddr *); static void end_login (void); -static FILE *getdatasock (char *); +static FILE *getdatasock (const char *); static char *gunique (char *); static RETSIGTYPE lostconn (int); static int receive_data (FILE *, FILE *); @@ -949,7 +949,7 @@ pass(char *passwd) } void -retrieve(char *cmd, char *name) +retrieve(const char *cmd, char *name) { FILE *fin = NULL, *dout; struct stat st; @@ -1172,7 +1172,7 @@ done: } static FILE * -getdatasock(char *mode) +getdatasock(const char *mode) { int s, t, tries; @@ -1211,7 +1211,7 @@ bad: } static FILE * -dataconn(char *name, off_t size, char *mode) +dataconn(const char *name, off_t size, const char *mode) { char sizebuf[32]; FILE *file; @@ -2081,7 +2081,7 @@ gunique(char *local) * Format and send reply containing system error number. */ void -perror_reply(int code, char *string) +perror_reply(int code, const char *string) { reply(code, "%s: %s.", string, strerror(errno)); } @@ -2092,7 +2092,7 @@ static char *onefile[] = { }; void -list_file(const char *file) +list_file(char *file) { if(use_builtin_ls) { FILE *dout;