aboutsummaryrefslogtreecommitdiffstats
path: root/tempfile.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-03-11 00:36:45 +0000
committerGuy Harris <guy@alum.mit.edu>2010-03-11 00:36:45 +0000
commite1b68812865ac511f095e4a0f58bf52cbb36d150 (patch)
tree6f3860ac809ee6f76b42354399b91fa42cfa8ecc /tempfile.c
parent054938dbe347a3926216cf5f8c8112e96de19f46 (diff)
Squelch some compiler warnings.
svn path=/trunk/; revision=32165
Diffstat (limited to 'tempfile.c')
-rw-r--r--tempfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tempfile.c b/tempfile.c
index 1a292b5fc7..7a6b5656f9 100644
--- a/tempfile.c
+++ b/tempfile.c
@@ -175,7 +175,7 @@ create_tempfile(char **namebuf, const char *pfx)
*/
if (tf_path[idx] == NULL) {
tf_path_len[idx] = INITIAL_PATH_SIZE;
- tf_path[idx] = g_malloc(tf_path_len[idx]);
+ tf_path[idx] = (char *)g_malloc(tf_path_len[idx]);
}
/*
@@ -185,7 +185,7 @@ create_tempfile(char **namebuf, const char *pfx)
while (g_snprintf(tf_path[idx], tf_path_len[idx], "%s%c%s" TMP_FILE_SUFFIX, tmp_dir, G_DIR_SEPARATOR, pfx) > tf_path_len[idx]) {
tf_path_len[idx] *= 2;
- tf_path[idx] = g_realloc(tf_path[idx], tf_path_len[idx]);
+ tf_path[idx] = (char *)g_realloc(tf_path[idx], tf_path_len[idx]);
}
if (namebuf) {
@@ -226,7 +226,7 @@ create_tempdir(char **namebuf, const char *pfx)
*/
if (td_path[idx] == NULL) {
td_path_len[idx] = INITIAL_PATH_SIZE;
- td_path[idx] = g_malloc(td_path_len[idx]);
+ td_path[idx] = (char *)g_malloc(td_path_len[idx]);
}
/*
@@ -236,7 +236,7 @@ create_tempdir(char **namebuf, const char *pfx)
while (g_snprintf(td_path[idx], td_path_len[idx], "%s%c%s" TMP_FILE_SUFFIX, tmp_dir, G_DIR_SEPARATOR, pfx) > td_path_len[idx]) {
td_path_len[idx] *= 2;
- td_path[idx] = g_realloc(td_path[idx], td_path_len[idx]);
+ td_path[idx] = (char *)g_realloc(td_path[idx], td_path_len[idx]);
}
if (namebuf) {