chiark / gitweb /
Clear up confusion wrt. ENTRY_SIZE_MAX and DATA_SIZE_MAX
[elogind.git] / src / journal / coredump.c
index 59c6d4b716b54c31aa9ff8f954e494e0a2e42478..4ac1a41299af2e12292574c7c0b799f53df31580 100644 (file)
@@ -61,8 +61,8 @@
 #define JOURNAL_SIZE_MAX ((size_t) (767LU*1024LU*1024LU))
 
 /* Make sure to not make this larger than the maximum journal entry
- * size. See ENTRY_SIZE_MAX in journald-native.c. */
-assert_cc(JOURNAL_SIZE_MAX <= ENTRY_SIZE_MAX);
+ * size. See DATA_SIZE_MAX in journald-native.c. */
+assert_cc(JOURNAL_SIZE_MAX <= DATA_SIZE_MAX);
 
 enum {
         INFO_PID,
@@ -120,7 +120,7 @@ static int parse_config(void) {
                         NULL,
                         "Coredump\0",
                         config_item_table_lookup,
-                        (void*) items,
+                        items,
                         false,
                         false,
                         NULL);
@@ -402,9 +402,9 @@ static int save_external_coredump(
         fail_compressed:
                 unlink_noerrno(tmp_compressed);
         }
-#endif
 
 uncompressed:
+#endif
         r = fix_permissions(fd, tmp, fn, info, uid);
         if (r < 0)
                 goto fail;