>From e03aaf6a913199fdf13bd68f75ec1d07f34f8f89 Mon Sep 17 00:00:00 2001
From: Mike McCormack <[email protected]>
Date: Tue, 19 Apr 2011 13:47:11 +0900
Subject: [PATCH 6/9] Fix warning (free'ing const pointer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[CC] preload/procfs.o
preload/procfs.c: In function �쁯rocfs_mapping_request_for_my_files��:
preload/procfs.c:265: warning: passing argument 1 of �쁣ree�� discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected �쁵oid *�� but argument is of type �쁟onst char *��
preload/procfs.c:271: warning: passing argument 1 of �쁣ree�� discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected �쁵oid *�� but argument is of type �쁟onst char *��
preload/procfs.c:276: warning: passing argument 1 of �쁣ree�� discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected �쁵oid *�� but argument is of type �쁟onst char *��
preload/procfs.c: In function �쁯rocfs_mapping_request_for_other_files��:
preload/procfs.c:335: warning: passing argument 1 of �쁣ree�� discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected �쁵oid *�� but argument is of type �쁟onst char *��
preload/procfs.c:341: warning: passing argument 1 of �쁣ree�� discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected �쁵oid *�� but argument is of type �쁟onst char *��
preload/procfs.c:347: warning: passing argument 1 of �쁣ree�� discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected �쁵oid *�� but argument is of type �쁟onst char *��
Change-Id: I65883e247b6293c65569608e2566df14c9007da2
---
preload/procfs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/preload/procfs.c b/preload/procfs.c
index 3678ad7..20d925b 100644
--- a/preload/procfs.c
+++ b/preload/procfs.c
@@ -244,7 +244,7 @@ static char *procfs_mapping_request_for_my_files(
full_path);
if (!strcmp(base_path,"exe")) {
- const char *exe_path_inside_sb2;
+ char *exe_path_inside_sb2;
char pathbuf[PATH_MAX];
char link_dest[PATH_MAX+1];
int link_len;
@@ -286,7 +286,7 @@ static char *procfs_mapping_request_for_other_files(
full_path);
if (!strcmp(base_path,"exe")) {
- const char *exe_path_inside_sb2;
+ char *exe_path_inside_sb2;
char *buffer;
char pathbuf[PATH_MAX];
char link_dest[PATH_MAX+1];
--
1.7.9.1
_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel