diff options
author | Michael Mann <mmann78@netscape.net> | 2016-06-05 22:24:47 -0400 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2016-06-06 06:03:58 +0000 |
commit | 57ef06e242dbbce390547d9711f810fc60829219 (patch) | |
tree | eaadf36f96023dd59c3fd56565bf6e14c9e57431 /ui/iface_lists.c | |
parent | 6333b98ea6f7733b150537cbba6f80f3e2d83d43 (diff) |
*_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 'ui/iface_lists.c')
-rw-r--r-- | ui/iface_lists.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/iface_lists.c b/ui/iface_lists.c index 10cb277522..429cc0f67e 100644 --- a/ui/iface_lists.c +++ b/ui/iface_lists.c @@ -250,7 +250,7 @@ scan_local_interfaces(void (*update_cb)(void)) link = (link_row *)g_malloc(sizeof(link_row)); if (data_link_info->description != NULL) { link->dlt = data_link_info->dlt; - link->name = g_strdup_printf("%s", data_link_info->description); + link->name = g_strdup(data_link_info->description); } else { link->dlt = -1; link->name = g_strdup_printf("%s (not supported)", data_link_info->name); @@ -326,7 +326,7 @@ scan_local_interfaces(void (*update_cb)(void)) device.name = g_strdup(interface_opts.name); device.display_name = interface_opts.descr ? g_strdup_printf("%s: %s", device.name, interface_opts.descr) : - g_strdup_printf("%s", device.name); + g_strdup(device.name); device.hidden = FALSE; device.selected = TRUE; device.type = IF_PIPE; |