summaryrefslogtreecommitdiff
path: root/capture_sync.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-03-05 20:25:32 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-03-05 20:25:32 +0000
commit5a818204016e8b7121246e235635517a4257c074 (patch)
tree21f6308c63442acd3e4c859407c7a8b787b9d11e /capture_sync.c
parent47a8a496f11f1da2bba033eab2d5b8999172c94e (diff)
downloadwireshark-5a818204016e8b7121246e235635517a4257c074.tar.gz
it seems that g_free() needs a gpointer
using a gconstpointer creates a warning capture_sync.c: In function ‘sync_pipe_open_command’: capture_sync.c:823:13: error: passing argument 1 of ‘g_free’ discards ‘const’ qualifier from pointer target type [-Werror] svn path=/trunk/; revision=48096
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 8ae0365776..51c74bc13b 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -611,7 +611,7 @@ sync_pipe_start(capture_options *capture_opts) {
/* Couldn't create the pipe between parent and child. */
report_failure("Couldn't create sync pipe: %s", g_strerror(errno));
for (i = 0; i < argc; i++) {
- g_free( (gconstpointer) argv[i]);
+ g_free( (gpointer) argv[i]);
}
g_free(argv);
return FALSE;
@@ -820,7 +820,7 @@ sync_pipe_open_command(const char** argv, int *data_read_fd,
/* Couldn't create the message pipe between parent and child. */
*msg = g_strdup_printf("Couldn't create sync pipe: %s", g_strerror(errno));
for (i = 0; argv[i] != NULL; i++) {
- g_free( (gconstpointer) argv[i]);
+ g_free( (gpointer) argv[i]);
}
g_free(argv);
return -1;
@@ -833,7 +833,7 @@ sync_pipe_open_command(const char** argv, int *data_read_fd,
ws_close(sync_pipe[PIPE_READ]);
ws_close(sync_pipe[PIPE_WRITE]);
for (i = 0; argv[i] != NULL; i++) {
- g_free( (gconstpointer) argv[i]);
+ g_free( (gpointer) argv[i]);
}
g_free(argv);
return -1;