- 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
svn/tags/lighttpd-1.4.13
Marcus Rückert 16 years ago
parent acd628fe09
commit b060b46dc9
  1. 11
      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;

Loading…
Cancel
Save