summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-25 12:21:26 +0100
committerdefault <nobody@localhost>2022-11-25 12:21:26 +0100
commit9df1cb129e1702f1a271a948033447167c5c06d7 (patch)
tree33fffcd0aa1c61764342e11777edca3632a47e41 /data.c
parente2c332c68a5b2dabd7f9fff41a86f0ae60de02d9 (diff)
Use macro XS_ALL were possible.
Diffstat (limited to 'data.c')
-rw-r--r--data.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/data.c b/data.c
index 9acf83c..c01a611 100644
--- a/data.c
+++ b/data.c
@@ -433,9 +433,6 @@ int object_add(const char *id, d_char *obj)
return 204; /* No content */
}
-// if (xs_dict_get(obj, "suspended") != NULL)
-// srv_log(xs_fmt("object_add suspended: true %s", id));
-
if ((f = fopen(fn, "w")) != NULL) {
flock(fileno(f), LOCK_EX);
@@ -1246,7 +1243,7 @@ int static_get(snac *snac, const char *id, d_char **data, int *size)
FILE *f;
int status = 404;
- *size = 0xfffffff;
+ *size = XS_ALL;
if ((f = fopen(fn, "rb")) != NULL) {
*data = xs_read(f, size);