summaryrefslogtreecommitdiff
path: root/wiretap/ngsniffer.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-06-05 22:24:47 -0400
committerJaap Keuter <jaap.keuter@xs4all.nl>2016-06-06 06:03:58 +0000
commit57ef06e242dbbce390547d9711f810fc60829219 (patch)
treeeaadf36f96023dd59c3fd56565bf6e14c9e57431 /wiretap/ngsniffer.c
parent6333b98ea6f7733b150537cbba6f80f3e2d83d43 (diff)
downloadwireshark-57ef06e242dbbce390547d9711f810fc60829219.tar.gz
*_stdup_printf -> strdup for "single string only" formatting.
Done for performance improvements. This could probably be done in checkAPIs.pl, but this was just a quick manual check with grepping. Change-Id: I91ff102cb528bb00fa2f65489de53890e7e46f2d Reviewed-on: https://code.wireshark.org/review/15751 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Diffstat (limited to 'wiretap/ngsniffer.c')
-rw-r--r--wiretap/ngsniffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c
index da5929885c..3d78c3d57b 100644
--- a/wiretap/ngsniffer.c
+++ b/wiretap/ngsniffer.c
@@ -597,7 +597,7 @@ ngsniffer_open(wtap *wth, int *err, gchar **err_info)
if (type != REC_VERS) {
*err = WTAP_ERR_BAD_FILE;
- *err_info = g_strdup_printf("ngsniffer: Sniffer file doesn't start with a version record");
+ *err_info = g_strdup("ngsniffer: Sniffer file doesn't start with a version record");
return WTAP_OPEN_ERROR;
}
@@ -892,7 +892,7 @@ process_rec_header2_v2(wtap *wth, unsigned char *buffer, guint16 length,
* There's not enough data to compare.
*/
*err = WTAP_ERR_UNSUPPORTED;
- *err_info = g_strdup_printf("ngsniffer: WAN capture has too-short protocol list");
+ *err_info = g_strdup("ngsniffer: WAN capture has too-short protocol list");
return -1;
}