summaryrefslogtreecommitdiff
path: root/src/sp_utils.h
diff options
context:
space:
mode:
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