aboutsummaryrefslogtreecommitdiffstats
path: root/trigcap.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-05-13 07:26:20 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-05-13 07:26:20 +0000
commita81458155392e7e9717ee305501c13f74fffa467 (patch)
tree0a3e88403a079c17335d9347ea680a234d6fb6d7 /trigcap.c
parentd22975841b065e71cb4906dc42fb25b36a0ab31d (diff)
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25284
Diffstat (limited to 'trigcap.c')
-rw-r--r--trigcap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/trigcap.c b/trigcap.c
index 020ce3561e..9eef95c84e 100644
--- a/trigcap.c
+++ b/trigcap.c
@@ -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;