summaryrefslogtreecommitdiffabout
path: root/libical/src/libical/sspm.c
Side-by-side diff
Diffstat (limited to 'libical/src/libical/sspm.c') (more/less context) (ignore whitespace changes)
-rw-r--r--libical/src/libical/sspm.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/libical/src/libical/sspm.c b/libical/src/libical/sspm.c
index 2df581b..17f12ee 100644
--- a/libical/src/libical/sspm.c
+++ b/libical/src/libical/sspm.c
@@ -43,10 +43,2 @@
-// Eugen C. <eug@thekompany.com>
-#ifdef _WIN32
-#define strcasecmp _stricmp
-#endif
-// Eugen C. <eug@thekompany.com>
-
-int snprintf(char *str, size_t n, char const *fmt, ...);
-
#ifdef DMALLOC
@@ -55,2 +47,7 @@ int snprintf(char *str, size_t n, char const *fmt, ...);
+#ifdef WIN32
+#define snprintf _snprintf
+#define strcasecmp stricmp
+#endif
+
#define TMP_BUF_SIZE 1024
@@ -95,3 +92,3 @@ char* sspm_strdup(char* str){
-struct major_content_type_map
+static struct major_content_type_map
{
@@ -114,3 +111,3 @@ struct major_content_type_map
-struct minor_content_type_map
+static struct minor_content_type_map
{
@@ -243,3 +240,3 @@ char* sspm_value(char* line)
-char *mime_headers[] = {
+static char *mime_headers[] = {
"Content-Type",
@@ -368,3 +365,3 @@ enum line_type {
-enum line_type get_line_type(char* line){
+static enum line_type get_line_type(char* line){
@@ -392,3 +389,3 @@ enum line_type get_line_type(char* line){
-struct sspm_action_map get_action(struct mime_impl *impl,
+static struct sspm_action_map get_action(struct mime_impl *impl,
enum sspm_major_type major,