aboutsummaryrefslogtreecommitdiff
path: root/src/examples/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/demo.c')
-rw-r--r--src/examples/demo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c
index edf38e98..0b177357 100644
--- a/src/examples/demo.c
+++ b/src/examples/demo.c
@@ -254,7 +254,7 @@ struct ResponseDataContext
254 * 254 *
255 * @param rdc where to store the list of files 255 * @param rdc where to store the list of files
256 * @param dirname name of the directory to list 256 * @param dirname name of the directory to list
257 * @return MHD_YES on success, MHD_NO on error 257 * @return #MHD_YES on success, #MHD_NO on error
258 */ 258 */
259static int 259static int
260list_directory (struct ResponseDataContext *rdc, 260list_directory (struct ResponseDataContext *rdc,
@@ -271,7 +271,7 @@ list_directory (struct ResponseDataContext *rdc,
271 { 271 {
272 if ('.' == de->d_name[0]) 272 if ('.' == de->d_name[0])
273 continue; 273 continue;
274 if (sizeof (fullname) <= (size_t) 274 if (sizeof (fullname) <= (unsigned int)
275 snprintf (fullname, sizeof (fullname), 275 snprintf (fullname, sizeof (fullname),
276 "%s/%s", 276 "%s/%s",
277 dirname, de->d_name)) 277 dirname, de->d_name))
@@ -555,7 +555,7 @@ process_upload_data (void *cls,
555 uc->category, 555 uc->category,
556 filename); 556 filename);
557 for (i=strlen (fn)-1;i>=0;i--) 557 for (i=strlen (fn)-1;i>=0;i--)
558 if (! isprint ((int) fn[i])) 558 if (! isprint ((unsigned char) fn[i]))
559 fn[i] = '_'; 559 fn[i] = '_';
560 uc->fd = open (fn, 560 uc->fd = open (fn,
561 O_CREAT | O_EXCL 561 O_CREAT | O_EXCL