http://bugzilla.moblin.org/show_bug.cgi?id=5061
pohly <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from pohly <[email protected]> 2009-08-05 03:08:49 --- (In reply to comment #0) > syncevo-dbus-server.cpp: In function ‘char* need_password(const char*, const > char*, void*)’: > syncevo-dbus-server.cpp:481: error: invalid conversion from ‘const char*’ to > ‘char*’ This is with g++ 4.4.1, right? I have not been able to reproduce it with 4.4.3 and 4.4.0 on Debian testing (don't have access to a Fedora build machine). I suspect that the new compiler has overloaded strstr() and returns a const pointer for a const argument. Here's a patch for that: diff --git a/src/syncevo-dbus-server.cpp b/src/syncevo-dbus-server.cpp index 51bb57d..c8c5e70 100644 --- a/src/syncevo-dbus-server.cpp +++ b/src/syncevo-dbus-server.cpp @@ -475,7 +475,7 @@ need_password (const char *username, gpointer data) { char *password = NULL; - char *server = NULL; + const char *server = NULL; GnomeKeyringResult res; server = strstr (server_url, "://"); Does this work? I have committed it to the "master" trunk. -- Configure bugmail: http://bugzilla.moblin.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching someone on the CC list of the bug. _______________________________________________ Syncevolution-issues mailing list [email protected] http://lists.syncevolution.org/listinfo/syncevolution-issues
