--- src/dialogs/export.cpp 2009-05-31 22:31:35.000000000 +0200 +++ src/dialogs/export.cpp 2009-05-31 22:32:04.000000000 +0200 @@ -1041,7 +1041,7 @@ static gchar * filename_add_extension (const gchar *filename, const gchar *extension) { - gchar *dot; + const char *dot; dot = strrchr (filename, '.'); if ( !dot ) --- src/document.cpp 2009-05-31 22:27:36.000000000 +0200 +++ src/document.cpp 2009-05-31 22:28:17.000000000 +0200 @@ -746,7 +746,7 @@ } if ( NULL != document_language ) { - gchar *pos = strchr(document_language, '_'); + const char *pos = strchr(document_language, '_'); if ( NULL != pos ) { return Glib::ustring(document_language, pos - document_language); } --- src/prefix.cpp 2009-05-31 22:25:45.000000000 +0200 +++ src/prefix.cpp 2009-05-31 22:27:02.000000000 +0200 @@ -355,7 +355,8 @@ char * br_extract_dir (const char *path) { - char *end, *result; + const char *end; + char *result; br_return_val_if_fail (path != (char*)NULL, (char*)NULL); @@ -390,7 +391,8 @@ char * br_extract_prefix (const char *path) { - char *end, *tmp, *result; + const char *end; + char *tmp, *result; br_return_val_if_fail (path != (char*)NULL, (char*)NULL);