diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-13 07:26:20 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-13 07:26:20 +0000 |
commit | 330bb2c7819d00d6b484a7bc00473ced75757715 (patch) | |
tree | 0a3e88403a079c17335d9347ea680a234d6fb6d7 /trigcap.c | |
parent | 4fae53e13bdc32d7fd76ea6dd589ffc707f47ffc (diff) |
Fix some of the Errors/warnings detected by checkapi.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25284 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'trigcap.c')
-rw-r--r-- | trigcap.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -131,11 +131,11 @@ int main(int argc, char** argv) { switch (opt) { case 'i': if (interface) panic(1,"interface already given"); - interface = strdup(optarg); + interface = g_strdup(optarg); break; case 'w': if (outfile) panic(3,"output file already given"); - outfile = strdup(optarg); + outfile = g_strdup(optarg); break; case 's': snaplen = strtoul(optarg,NULL,10); @@ -144,15 +144,15 @@ int main(int argc, char** argv) { break; case 'b': if (start_filter_str) panic(5,"start filter already given"); - start_filter_str = strdup(optarg); + start_filter_str = g_strdup(optarg); break; case 'e': if (stop_filter_str) panic(6,"stop filter already given"); - stop_filter_str = strdup(optarg); + stop_filter_str = g_strdup(optarg); break; case 'f': if (capture_filter_str) panic(7,"capture filter already given"); - capture_filter_str = strdup(optarg); + capture_filter_str = g_strdup(optarg); break; case 'p': promisc = 1; |