aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-06-10 12:24:19 +0800
committerRunxi Yu <me@runxiyu.org>2025-06-10 12:24:19 +0800
commita4f1c7d38c3aaf6064145398503c0b15afed350e (patch)
tree2065e0dcaf8bc34768474cb2af7c4d56c538324d
parentgit2d: Fix socket fd leak and memory leak in main loop (diff)
downloadforge-a4f1c7d38c3aaf6064145398503c0b15afed350e.tar.gz
forge-a4f1c7d38c3aaf6064145398503c0b15afed350e.tar.zst
forge-a4f1c7d38c3aaf6064145398503c0b15afed350e.zip
git2d: x.h include guard should be before its own includesHEADv0.1.53master
-rw-r--r--git2d/x.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/git2d/x.h b/git2d/x.h
index 96ade20..a6da50f 100644
--- a/git2d/x.h
+++ b/git2d/x.h
@@ -3,6 +3,9 @@
* SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
*/
+#ifndef X_H
+#define X_H
+
#include <err.h>
#include <errno.h>
#include <git2.h>
@@ -19,9 +22,6 @@
#include "bare.h"
-#ifndef X_H
-#define X_H
-
typedef struct {
int fd;
} conn_io_t;