From f0ee0709373992a81c04ed477523247aed955815 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 14 Mar 2006 00:45:33 +0000 Subject: [PATCH] win32 cleanups --- src/db-sql.c | 4 ++-- src/smart-parser.c | 2 +- win32/config.h | 5 ++++- win32/nsi/mt-daapd-example.conf | 25 +++++++++++++------------ 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/db-sql.c b/src/db-sql.c index c920b96a..c8e84daa 100644 --- a/src/db-sql.c +++ b/src/db-sql.c @@ -141,13 +141,13 @@ int db_sql_escape(char *buffer, int *size, char *fmt, ...) { va_end(ap); if(*size < (int)strlen(escaped)) { - *size = strlen(escaped) + 1; + *size = (int)strlen(escaped) + 1; db_sql_vmfree_fn(escaped); return DB_E_SIZE; } strcpy(buffer,escaped); - *size = strlen(escaped); + *size = (int)strlen(escaped); db_sql_vmfree_fn(escaped); return DB_E_SUCCESS; diff --git a/src/smart-parser.c b/src/smart-parser.c index 4ea347ab..0e9eb6c0 100644 --- a/src/smart-parser.c +++ b/src/smart-parser.c @@ -587,7 +587,7 @@ int sp_scan(PARSETREE tree, int hint) { token_string=tree->current; if(found) { if(pfield->xlat) { - len = strlen(pfield->xlat); + len = (int)strlen(pfield->xlat); token_string = pfield->xlat; } } diff --git a/win32/config.h b/win32/config.h index 0edb8c6a..ab167340 100644 --- a/win32/config.h +++ b/win32/config.h @@ -145,7 +145,10 @@ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 +/* */ +#define HAVE_SQL + /* Version number of package */ -#define VERSION "cvs-win32-afu" +#define VERSION "cvs-win32-20060313" #include "win32.h" diff --git a/win32/nsi/mt-daapd-example.conf b/win32/nsi/mt-daapd-example.conf index 662fd84e..388159f6 100644 --- a/win32/nsi/mt-daapd-example.conf +++ b/win32/nsi/mt-daapd-example.conf @@ -11,6 +11,7 @@ # +[general] # # web_root (required) # @@ -23,7 +24,7 @@ # path is probably /usr/local/share/mt-daapd/admin-root. # -web_root admin-root +web_root=admin-root # # port (required) @@ -32,7 +33,7 @@ web_root admin-root # port, but this is the default iTunes port # -port 9999 +port=9999 # # admin_pw (required) @@ -40,7 +41,7 @@ port 9999 # This is the password to the administrative pages # -admin_pw mt-daapd +admin_pw=mt-daapd # @@ -50,7 +51,7 @@ admin_pw mt-daapd # info in. Valid choices are "sqlite" and "sqlite3". # -db_type sqlite +db_type=sqlite # # db_parms @@ -64,7 +65,7 @@ db_type sqlite # must be writable by the "runas" user. # -db_parms . +db_parms=. # # mp3_dir (required) @@ -74,7 +75,7 @@ db_parms . # in the same physical filesystem. # -mp3_dir c:\documents and settings +mp3_dir=c:\mp3 # # servername (required) @@ -84,7 +85,7 @@ mp3_dir c:\documents and settings # exported via DAAP. Also know as "What shows up in iTunes". # -servername mt-daapd +servername=mt-daapd # # runas (required) @@ -96,7 +97,7 @@ servername mt-daapd # as root or not. # -runas nobody +runas=nobody # # playlist (optional) @@ -111,7 +112,7 @@ runas nobody # below. # -playlist /etc/mt-daapd.playlist +playlist=/etc/mt-daapd.playlist # # password (optional) @@ -120,7 +121,7 @@ playlist /etc/mt-daapd.playlist # i.e. the password that iTunes prompts for # -#password mp3 +#password=mp3 # # extensions (optional) @@ -138,7 +139,7 @@ playlist /etc/mt-daapd.playlist # See the ssc_* options below. # -extensions .mp3,.m4a,.m4p +extensions=.mp3,.m4a,.m4p # # ssc_codectypes (optional) @@ -285,7 +286,7 @@ extensions .mp3,.m4a,.m4p # the file is indexed. # -scan_type 2 +scan_type=2 # # compress