summaryrefslogtreecommitdiffstats
path: root/src/common/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file.h')
-rw-r--r--src/common/file.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/common/file.h b/src/common/file.h
index d002bf7..18d631d 100644
--- a/src/common/file.h
+++ b/src/common/file.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _FILE_H
-#define _FILE_H
+#pragma once
#include <stddef.h>
#include <stdbool.h>
@@ -16,5 +10,3 @@
#define BC_FILE_CHUNK_SIZE 1024
char* bc_file_get_contents(const char *path, bool utf8, size_t *len, bc_error_t **err);
-
-#endif /* _FILE_H */