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
@@ -41,18 +41,15 @@
#include <stdlib.h> /* for malloc, free */
#include <string.h> /* for strcasecmp */
-// 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
#include "dmalloc.h"
#endif
+#ifdef WIN32
+#define snprintf _snprintf
+#define strcasecmp stricmp
+#endif
+
#define TMP_BUF_SIZE 1024
@@ -93,7 +90,7 @@ char* sspm_strdup(char* str){
}
-struct major_content_type_map
+static struct major_content_type_map
{
enum sspm_major_type type;
char* str;
@@ -112,7 +109,7 @@ struct major_content_type_map
{SSPM_UNKNOWN_MAJOR_TYPE,"" },
};
-struct minor_content_type_map
+static struct minor_content_type_map
{
enum sspm_minor_type type;
char* str;
@@ -241,7 +238,7 @@ char* sspm_value(char* line)
}
-char *mime_headers[] = {
+static char *mime_headers[] = {
"Content-Type",
"Content-Transfer-Encoding",
"Content-Disposition",
@@ -366,7 +363,7 @@ enum line_type {
};
-enum line_type get_line_type(char* line){
+static enum line_type get_line_type(char* line){
if (line == 0){
return EMPTY;
@@ -390,7 +387,7 @@ 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,
enum sspm_minor_type minor)
{