diff --git a/arg.h b/arg.h index 9c4d1bb..fef64f7 100644 --- a/arg.h +++ b/arg.h @@ -31,8 +31,7 @@ * by 20h */ -#ifndef _ARG_H_ -#define _ARG_H_ +#pragma once #ifndef COSMOPOLITAN #include @@ -79,5 +78,3 @@ extern char *argv0; (brk_ = 1, (argv[0][i_+1] != '\0')?\ (&argv[0][i_+1]) :\ (argc--, argv++, argv[0]))) - -#endif diff --git a/bin.h b/bin.h index fddb7f0..dbb9a0c 100644 --- a/bin.h +++ b/bin.h @@ -11,8 +11,7 @@ * . */ -#ifndef _BIN_H_ -#define _BIN_H_ +#pragma once #include "feuille.h" @@ -21,5 +20,3 @@ int write_paste(char *, unsigned long, char *); char *generate_id(int); char *create_url(char *); - -#endif diff --git a/config.mk b/config.mk index 1fd8299..e09c7ce 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # feuille version -VERSION = 2.1.2 +VERSION = 2.1.4 # paths (customize them to fit your system) PREFIX = /usr/local diff --git a/feuille.1 b/feuille.1 index 5452e7f..b8d1600 100644 --- a/feuille.1 +++ b/feuille.1 @@ -14,7 +14,7 @@ . ftr VB CB . ftr VBI CBI .\} -.TH "feuille" "1" "November 2022" "feuille 2.1.2" "" +.TH "feuille" "1" "November 2022" "feuille 2.1.4" "" .hy .SH NAME .PP diff --git a/feuille.h b/feuille.h index fa87e0c..4894ada 100644 --- a/feuille.h +++ b/feuille.h @@ -11,8 +11,7 @@ * . */ -#ifndef _FEUILLE_H_ -#define _FEUILLE_H_ +#pragma once typedef struct Settings { char *address; @@ -32,5 +31,3 @@ typedef struct Settings { } Settings; extern Settings settings; - -#endif diff --git a/server.h b/server.h index d72b18a..48e6796 100644 --- a/server.h +++ b/server.h @@ -11,8 +11,7 @@ * . */ -#ifndef _SERVER_H_ -#define _SERVER_H_ +#pragma once #include "feuille.h" @@ -23,5 +22,3 @@ void close_connection(int); unsigned long read_paste(int, char **); int send_response(int, char *); - -#endif diff --git a/util.h b/util.h index f074d15..5daeff1 100644 --- a/util.h +++ b/util.h @@ -11,11 +11,8 @@ * . */ -#ifndef _UTIL_H_ -#define _UTIL_H_ +#pragma once void die(int, char *, ...); void error(char *, ...); void verbose(int, char *, ...); - -#endif