From b060b46dc98824f9ab688dca0b6667bbfabb7320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= Date: Tue, 3 Oct 2006 22:21:42 +0000 Subject: [PATCH] - mark a few params as unused - fix a few signed mismatch by casting to the correct type git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1363 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_webdav.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mod_webdav.c b/src/mod_webdav.c index c3764435..9751c9ec 100644 --- a/src/mod_webdav.c +++ b/src/mod_webdav.c @@ -661,7 +661,7 @@ static int webdav_delete_dir(server *srv, connection *con, plugin_data *p, physi static int webdav_copy_file(server *srv, connection *con, plugin_data *p, physical *src, physical *dst, int overwrite) { stream s; int status = 0, ofd; - + UNUSED(srv); UNUSED(con); if (stream_open(&s, src->path)) { @@ -1148,6 +1148,7 @@ int webdav_lockdiscovery(server *srv, connection *con, * */ int webdav_has_lock(server *srv, connection *con, plugin_data *p, buffer *uri) { + UNUSED(srv); int has_lock = 1; #ifdef USE_LOCKS @@ -2202,7 +2203,7 @@ propmatch_cleanup: if (0 == xmlStrcmp(rootnode->name, BAD_CAST "lockinfo")) { xmlNode *lockinfo; - const xmlChar *lockscope = NULL, *locktype = NULL, *owner = NULL; + const xmlChar *lockscope = NULL, *locktype = NULL; /* TODO: compiler says unused: *owner = NULL; */ for (lockinfo = rootnode->children; lockinfo; lockinfo = lockinfo->next) { if (0 == xmlStrcmp(lockinfo->name, BAD_CAST "lockscope")) { @@ -2306,12 +2307,12 @@ propmatch_cleanup: SQLITE_TRANSIENT); sqlite3_bind_text(stmt, 3, - lockscope, + (const char *)lockscope, xmlStrlen(lockscope), SQLITE_TRANSIENT); sqlite3_bind_text(stmt, 4, - locktype, + (const char *)locktype, xmlStrlen(locktype), SQLITE_TRANSIENT); @@ -2332,7 +2333,7 @@ propmatch_cleanup: } /* looks like we survived */ - webdav_lockdiscovery(srv, con, p->tmp_buf, lockscope, locktype, depth); + webdav_lockdiscovery(srv, con, p->tmp_buf, (const char *)lockscope, (const char *)locktype, depth); con->http_status = 201; con->file_finished = 1;