Rev 1677: Fix warnings. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Fri Aug 29 09:55:09 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1677
revision-id: jelmer at samba.org-20080829085504-2halcduygazwdl46
parent: jelmer at samba.org-20080828155955-9pf7dza4ll2iitel
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-08-29 10:55:04 +0200
message:
  Fix warnings.
modified:
  ra.c                           ra.pyx-20080313140933-qybkqaxe3m4mcll7-1
  util.c                         util.c-20080531154025-s8ef6ej9tytsnkkw-1
=== modified file 'ra.c'
--- a/ra.c	2008-08-27 18:23:13 +0000
+++ b/ra.c	2008-08-29 08:55:04 +0000
@@ -1251,9 +1251,11 @@
 	const svn_delta_editor_t *editor;
 	void *edit_baton;
 	RemoteAccessObject *ra = (RemoteAccessObject *)self;
-	apr_hash_t *hash_lock_tokens, *hash_revprops;
+	apr_hash_t *hash_lock_tokens;
 #if SVN_VER_MAJOR == 1 && SVN_VER_MINOR < 5
 	PyObject *py_log_msg;
+#else
+	apr_hash_t *hash_revprops;
 #endif
 	svn_error_t *err;
 

=== modified file 'util.c'
--- a/util.c	2008-08-27 18:14:49 +0000
+++ b/util.c	2008-08-29 08:55:04 +0000
@@ -141,7 +141,7 @@
 			PyErr_Format(PyExc_TypeError, "Expected list of strings, item was %s", item->ob_type->tp_name);
 			return false;
 		}
-		APR_ARRAY_PUSH(*ret, char *) = svn_path_canonicalize(PyString_AsString(item), pool);
+		APR_ARRAY_PUSH(*ret, const char *) = svn_path_canonicalize(PyString_AsString(item), pool);
 	}
 	return true;
 }




More information about the bazaar-commits mailing list