diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-08-20 22:16:12 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-08-20 22:16:12 +0000 |
commit | cf3b9f23e59a2cca2829432699a7face8b474ff0 (patch) | |
tree | 4468085c1f4a99e4eb0187f8014104a389c71bf8 /capture_sync.c | |
parent | 91c1db961b4aa5f82fe0185c403ed72d0dabf418 (diff) |
capture_sync.c(290) : warning C4090: 'function' : different 'const' qualifiers
capture_sync.c(290) : warning C4022: 'g_realloc' : pointer mismatch for actual parameter 1
capture_sync.c(431) : warning C4090: 'function' : different 'const' qualifiers
capture_sync.c(431) : warning C4022: 'g_free' : pointer mismatch for actual parameter 1
capture_sync.c(442) : warning C4090: 'function' : different 'const' qualifiers
capture_sync.c(442) : warning C4022: 'g_free' : pointer mismatch for actual parameter 1
capture_sync.c(549) : warning C4090: 'function' : different 'const' qualifiers
capture_sync.c(549) : warning C4022: 'g_free' : pointer mismatch for actual parameter 1
svn path=/trunk/; revision=15487
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/capture_sync.c b/capture_sync.c index 071bcd6440..cb0d50652e 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -287,7 +287,7 @@ sync_pipe_add_arg(const char **args, int *argc, const char *arg) pointers, *not* counting the NULL pointer at the end, so we have to add 2 in order to get the new size of the array, including the new pointer and the terminating NULL pointer. */ - args = g_realloc(args, (*argc + 2) * sizeof (char *)); + args = g_realloc( (gpointer) args, (*argc + 2) * sizeof (char *)); /* Stuff the pointer into the penultimate element of the array, which is the one at the index specified by "*argc". */ @@ -428,7 +428,7 @@ sync_pipe_start(capture_options *capture_opts) { /* Couldn't create the pipe between parent and child. */ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Couldn't create sync pipe: %s", strerror(errno)); - g_free(argv); + g_free( (gpointer) argv); return FALSE; } @@ -439,7 +439,7 @@ sync_pipe_start(capture_options *capture_opts) { strerror(errno)); close(sync_pipe[PIPE_READ]); close(sync_pipe[PIPE_WRITE]); - g_free(argv); + g_free( (gpointer) argv); return FALSE; } @@ -546,7 +546,7 @@ sync_pipe_start(capture_options *capture_opts) { /* Parent process - read messages from the child process over the sync pipe. */ - g_free(argv); /* free up arg array */ + g_free( (gpointer) argv); /* free up arg array */ /* Close the write side of the pipe, so that only the child has it open, and thus it completely closes, and thus returns to us |