Patch #2699 2009-02-18 12:12
horakdan
fix issue with gcc 4.4 - drop const modifier for strrchr- Download
- 2699-fix_issue_with.patch (1.4 KB)
- Category
- Status
- Rejected
- Close date
- 2012-07-10 07:14
- Assigned to
- mortenmacfly
From a7f611bd46b1a29e0a5ac3fde563bfaeb3f573e4 Mon Sep 17 00:00:00 2001
From: Dan Horak <dan@danny.cz>
Date: Wed, 18 Feb 2009 12:59:45 +0100
Subject: [PATCH] drop const modifier for compatibility with recent ISO C++ standards
---
src/src/prefix.cpp | 4 ++--
src/src/prefix.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/src/prefix.cpp b/src/src/prefix.cpp
index 5fb6246..6b8901e 100644
--- a/src/src/prefix.cpp
+++ b/src/src/prefix.cpp
@@ -387,7 +387,7 @@ br_strndup (char *str, size_t size)
* br_extract_dir ("/usr/local/foobar"); --> Returns: "/usr/local"
*/
char *
-br_extract_dir (const char *path)
+br_extract_dir (char *path)
{
char *end, *result;
@@ -422,7 +422,7 @@ br_extract_dir (const char *path)
* br_extract_prefix ("/usr/local/libfoo.so"); --> Returns "/usr"
*/
char *
-br_extract_prefix (const char *path)
+br_extract_prefix (char *path)
{
char *end, *tmp, *result;
diff --git a/src/src/prefix.h b/src/src/prefix.h
index 0406f29..6c15bc6 100644
--- a/src/src/prefix.h
+++ b/src/src/prefix.h
@@ -111,8 +111,8 @@ char *br_prepend_prefix (void *symbol, char *path);
#endif
char *br_strcat (const char *str1, const char *str2);
-char *br_extract_dir (const char *path);
-char *br_extract_prefix(const char *path);
+char *br_extract_dir (char *path);
+char *br_extract_prefix(char *path);
#ifdef __cplusplus
--
1.6.0.6
History
mortenmacfly 2012-07-10 07:14
There is no such issue and/or it is not described well. It works just fine with recent compilers. Rejecting.