summaryrefslogtreecommitdiff
path: root/src/sp_utils.h
diff options
context:
space:
mode:
authorjvoisin2018-01-11 11:26:07 +0100
committerjvoisin2018-01-11 11:26:07 +0100
commit49a27fac20f757c158e5faa18a41337c5f33b17b (patch)
tree2f289ae78a7419a39c7e591649dcc229b892f7d3 /src/sp_utils.h
parent6f21bff1d40326f69bc3b75b1b83b03623180365 (diff)
Remove some legacy code
Diffstat (limited to 'src/sp_utils.h')
-rw-r--r--src/sp_utils.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h
index a7b672f..ada7cf6 100644
--- a/src/sp_utils.h
+++ b/src/sp_utils.h
@@ -17,17 +17,6 @@
17#define sp_const 17#define sp_const
18#endif 18#endif
19#endif 19#endif
20/* The dump filename are of the form
21 * `sp_dump_DATE_IPADDR.dump`, with:
22 * - DATE being the output of asctime, 26 chars long
23 * - IP_ADDR being an IP adress, with a maximum size of 15
24 *
25 * We keep one char for the terminal \0, and one for the leading slash.
26 */
27
28#define MAX_FOLDER_LEN \
29 PATH_MAX - 1 - sizeof("sp_dump_") - 26 - sizeof("_") - 15 - \
30 sizeof(".dump") - 1
31 20
32#define VAR_AND_LEN(var) var, strlen(var) 21#define VAR_AND_LEN(var) var, strlen(var)
33 22