aboutsummaryrefslogtreecommitdiff
path: root/src/server_util.h
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-20 20:10:56 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-21 05:57:19 +0200
commit6b969d25ce136eaf695222bd1a10bff1ecac0220 (patch)
treec23afb50c28b9deaddae5c6526a74ee11cf2d865 /src/server_util.h
parentd4bdb8dae753462f621507d5fc3582e0e53da35c (diff)
downloadffwd-6b969d25ce136eaf695222bd1a10bff1ecac0220.tar.gz
ffwd-6b969d25ce136eaf695222bd1a10bff1ecac0220.zip
all: split Makefile and reorg library/tools
Diffstat (limited to '')
-rw-r--r--tools/server/util.h (renamed from src/server_util.h)16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server_util.h b/tools/server/util.h
index 955903c..3175cd0 100644
--- a/src/server_util.h
+++ b/tools/server/util.h
@@ -1,21 +1,21 @@
-#ifndef EMBED_SERVER_UTIL_H
-#define EMBED_SERVER_UTIL_H
+#ifndef FFWD_SERVER_UTIL_H
+#define FFWD_SERVER_UTIL_H
#include <stdint.h>
#include <stddef.h>
/* Die-on-OOM allocation, monotonic clocks, and timestamped logging shared by
- * the embed-server translation units. The x* allocators abort the process on
+ * the ffwd-server translation units. The x* allocators abort the process on
* failure rather than returning NULL, so callers never null-check them; the
* attributes below carry that contract across translation-unit boundaries so
* the static analyzer does not flag the (correctly) unchecked uses. */
#if defined(__GNUC__) || defined(__clang__)
-#define SERVER_NORETURN __attribute__((noreturn))
-#define SERVER_RETURNS_NONNULL __attribute__((returns_nonnull))
+# define SERVER_NORETURN __attribute__((noreturn))
+# define SERVER_RETURNS_NONNULL __attribute__((returns_nonnull))
#else
-#define SERVER_NORETURN
-#define SERVER_RETURNS_NONNULL
+# define SERVER_NORETURN
+# define SERVER_RETURNS_NONNULL
#endif
SERVER_NORETURN void die_oom(void);
@@ -33,4 +33,4 @@ double ns_to_ms(uint64_t ns);
/* printf-style line logger: timestamp prefix, newline appended, to stderr. */
void server_log(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
-#endif /* EMBED_SERVER_UTIL_H */
+#endif /* FFWD_SERVER_UTIL_H */