diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 21:33:43 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 21:33:43 +0000 |
commit | cefcc0426613cc761373e785980c87c77f8a8cb5 (patch) | |
tree | e64653268bcb93fc50bf23d22e38799c5bb31adc /src/htsftp.c | |
parent | 6ba50a2001bcfa1b467f69985a002fc064d8c807 (diff) |
"const correctness" cleanup
added the following default flags:
-Wformat
-Wformat-security
-Wmultichar
-Wwrite-strings
fixed several other warnings
Diffstat (limited to 'src/htsftp.c')
-rw-r--r-- | src/htsftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsftp.c b/src/htsftp.c index 3d26a79..ccba1bd 100644 --- a/src/htsftp.c +++ b/src/htsftp.c @@ -142,7 +142,7 @@ int run_launch_ftp(FTPDownloadStruct * pStruct) { #endif char BIGSTK adr_ip[1024]; char *adr, *real_adr; - char *ftp_filename = ""; + const char *ftp_filename = ""; int timeout = 300; // timeout int timeout_onfly = 8; // attente réponse supplémentaire int transfer_list = 0; // directory @@ -913,7 +913,7 @@ FILE *dd = NULL; // routines de réception/émission // 0 = ERROR -int send_line(T_SOC soc, char *data) { +int send_line(T_SOC soc, const char *data) { char BIGSTK line[1024]; if (_DEBUG_HEAD) { |