diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-03-11 00:36:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-03-11 00:36:45 +0000 |
commit | e1b68812865ac511f095e4a0f58bf52cbb36d150 (patch) | |
tree | 6f3860ac809ee6f76b42354399b91fa42cfa8ecc /disabled_protos.c | |
parent | 054938dbe347a3926216cf5f8c8112e96de19f46 (diff) |
Squelch some compiler warnings.
svn path=/trunk/; revision=32165
Diffstat (limited to 'disabled_protos.c')
-rw-r--r-- | disabled_protos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/disabled_protos.c b/disabled_protos.c index 701ac21ad0..fc6bfc2bc2 100644 --- a/disabled_protos.c +++ b/disabled_protos.c @@ -176,7 +176,7 @@ read_disabled_protos_list_file(const char *ff_path, FILE *ff, /* Allocate the protocol name buffer. */ prot_name_len = INIT_BUF_SIZE; - prot_name = g_malloc(prot_name_len + 1); + prot_name = (char *)g_malloc(prot_name_len + 1); for (line = 1; ; line++) { /* Lines in a disabled protocol file contain the "filter name" of @@ -212,7 +212,7 @@ read_disabled_protos_list_file(const char *ff_path, FILE *ff, if (prot_name_index >= prot_name_len) { /* protocol name buffer isn't long enough; double its length. */ prot_name_len *= 2; - prot_name = g_realloc(prot_name, prot_name_len + 1); + prot_name = (char *)g_realloc(prot_name, prot_name_len + 1); } prot_name[prot_name_index] = c; prot_name_index++; @@ -250,7 +250,7 @@ read_disabled_protos_list_file(const char *ff_path, FILE *ff, if (prot_name_index >= prot_name_len) { /* protocol name buffer isn't long enough; double its length. */ prot_name_len *= 2; - prot_name = g_realloc(prot_name, prot_name_len + 1); + prot_name = (char *)g_realloc(prot_name, prot_name_len + 1); } prot_name[prot_name_index] = '\0'; |