aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-15 16:01:08 +0000
committerGerrit Code Review <gerrit@2a01:4f8:191:444b:0:0:2:12>2017-10-15 16:01:08 +0000
commit5b0096a2368769fbcd6ec879cc9951489f20df51 (patch)
tree33961668abc7506bf4092a2a36c9d133d93bfe6a
parentdf6a10502449b1424ff39851cd2f3908b4dda08e (diff)
parent8a55263a1b7ccc8d17373360e582a0c3aeb97c68 (diff)
Merge "sgsnemu: Remove dead code: encaps_printf()"
-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)
{