summaryrefslogtreecommitdiff
path: root/epan/ipproto.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-08 18:50:39 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-08 18:50:39 +0000
commit0dc9fb3d4ab00d14bf45c597471e10e601efd4d4 (patch)
treeae44175ca8fd23548fcec5833098b535af5e372c /epan/ipproto.c
parentf3407856f4fd97caf90655205cdb2c66991e75ba (diff)
downloadwireshark-0dc9fb3d4ab00d14bf45c597471e10e601efd4d4.tar.gz
various code cleanup:
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
Diffstat (limited to 'epan/ipproto.c')
-rw-r--r--epan/ipproto.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/ipproto.c b/epan/ipproto.c
index 77d9bb4702..69f317d86f 100644
--- a/epan/ipproto.c
+++ b/epan/ipproto.c
@@ -37,10 +37,6 @@
#include <epan/addr_resolv.h>
#include <epan/dissectors/packet-ip.h>
-#ifdef NEED_SNPRINTF_H
-# include "snprintf.h"
-#endif
-
static const value_string ipproto_val[] = {
#if 0
{ IP_PROTO_IP, "IPv4" },
@@ -210,6 +206,6 @@ const char *ipprotostr(int proto) {
s = "Unknown";
ok:
- snprintf(buf, sizeof(buf), "%s", s);
+ g_snprintf(buf, sizeof(buf), "%s", s);
return buf;
}