diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-08-29 05:36:53 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-08-29 05:36:53 +0000 |
commit | 1b66c1da6c6cf6e33bedbc01c93f5d4c48de4e55 (patch) | |
tree | 05f46364bf954812b410a36ac545a830e886d31c /lib/file.c | |
parent | 5cb2ee878c2ff013c03f642b4fac36e4eccd38e0 (diff) |
Added lots of consts
Diffstat (limited to 'lib/file.c')
-rw-r--r-- | lib/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/file.c b/lib/file.c index 1abc838ea..0478d3ebd 100644 --- a/lib/file.c +++ b/lib/file.c @@ -192,7 +192,7 @@ CURLcode Curl_file_done(struct connectdata *conn, static CURLcode file_upload(struct connectdata *conn) { struct FILEPROTO *file = conn->data->reqdata.proto.file; - char *dir = strchr(file->path, DIRSEP); + const char *dir = strchr(file->path, DIRSEP); FILE *fp; CURLcode res=CURLE_OK; struct SessionHandle *data = conn->data; @@ -202,7 +202,7 @@ static CURLcode file_upload(struct connectdata *conn) curl_off_t bytecount = 0; struct timeval now = Curl_tvnow(); struct_stat file_stat; - char* buf2; + const char* buf2; /* * Since FILE: doesn't do the full init, we need to provide some extra @@ -372,11 +372,11 @@ CURLcode Curl_file(struct connectdata *conn, bool *done) return result; if(fstated) { - struct tm *tm; + const struct tm *tm; time_t clock = (time_t)statbuf.st_mtime; #ifdef HAVE_GMTIME_R struct tm buffer; - tm = (struct tm *)gmtime_r(&clock, &buffer); + tm = (const struct tm *)gmtime_r(&clock, &buffer); #else tm = gmtime(&clock); #endif |