From 62ea62ffc315617d30fbdb481b55796088bd1d95 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 1 Apr 2010 12:57:45 +0000 Subject: [PATCH] Fixed compiler warnings --- apps/httpserver_raw/makefsdata/makefsdata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/httpserver_raw/makefsdata/makefsdata.c b/apps/httpserver_raw/makefsdata/makefsdata.c index 83dcf5c..05695a3 100644 --- a/apps/httpserver_raw/makefsdata/makefsdata.c +++ b/apps/httpserver_raw/makefsdata/makefsdata.c @@ -390,7 +390,7 @@ int process_file(FILE *data_file, FILE *struct_file, const char *filename) int file_size; u16_t http_hdr_chksum = 0; u16_t http_hdr_len = 0; - int chksum_count; + int chksum_count = 0; /* create qualified name (TODO: prepend slash or not?) */ sprintf(qualifiedName,"%s/%s", curSubdir, filename); @@ -454,7 +454,7 @@ int file_write_http_header(FILE *data_file, const char *filename, int file_size, { int i = 0; int response_type = HTTP_HDR_OK; - int file_type; + int file_type = HTTP_HDR_DEFAULT_TYPE; const char *cur_string; size_t cur_len; int written = 0;