aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-10 09:03:25 +0800
committerHarald Welte <laforge@gnumonks.org>2017-10-14 16:39:07 +0200
commit8a55263a1b7ccc8d17373360e582a0c3aeb97c68 (patch)
tree33961668abc7506bf4092a2a36c9d133d93bfe6a
parentfed3389112f140c01916fd2e769fd194b6bfe715 (diff)
sgsnemu: Remove dead code: encaps_printf()
This function is never used/called, remove it. Change-Id: I37a447e4d5387e3fc5f4433ab20ceba7c446684b
-rw-r--r--sgsnemu/sgsnemu.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index 7b7bb4e..50eca63 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -955,19 +955,6 @@ static int process_options(int argc, char **argv)
}
-static int encaps_printf(struct pdp_t *pdp, void *pack, unsigned len)
-{
- unsigned int i;
- printf("The packet looks like this:\n");
- for (i = 0; i < len; i++) {
- printf("%02x ", (unsigned char)*(char *)(pack + i));
- if (!((i + 1) % 16))
- printf("\n");
- };
- printf("\n");
- return 0;
-}
-
/* read a single value from a /procc file, up to 255 bytes, callee-allocated */
static char *proc_read(const char *path)
{