diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-05-13 07:26:20 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-05-13 07:26:20 +0000 |
commit | a81458155392e7e9717ee305501c13f74fffa467 (patch) | |
tree | 0a3e88403a079c17335d9347ea680a234d6fb6d7 /trigcap.c | |
parent | d22975841b065e71cb4906dc42fb25b36a0ab31d (diff) |
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25284
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; |