From 06d8f16b87208abc6dfde1341e992e0811c31fda Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Tue, 23 Oct 2018 10:02:24 +0200 Subject: [PATCH] headers: end all headers with guard comment Most headerfiles end with a /* */ comment, but it was missing from some. The comment isn't the most important part of our code documentation but consistency has an intrinsic value in itself. This adds header guard comments to the files that were lacking it. Closes #3158 Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg --- lib/curl_path.h | 2 +- lib/doh.h | 2 +- lib/dotdot.h | 2 +- lib/urlapi-int.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/curl_path.h b/lib/curl_path.h index 5ee4ff367..636c37f20 100644 --- a/lib/curl_path.h +++ b/lib/curl_path.h @@ -44,4 +44,4 @@ CURLcode Curl_getworkingpath(struct connectdata *conn, char **path); CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir); -#endif +#endif /* HEADER_CURL_PATH_H */ diff --git a/lib/doh.h b/lib/doh.h index 5f879e50e..83c79bc5d 100644 --- a/lib/doh.h +++ b/lib/doh.h @@ -102,4 +102,4 @@ DOHcode doh_decode(unsigned char *doh, struct dohentry *d); void de_cleanup(struct dohentry *d); #endif -#endif +#endif /* HEADER_CURL_DOH_H */ diff --git a/lib/dotdot.h b/lib/dotdot.h index fac8e6f2a..125af4367 100644 --- a/lib/dotdot.h +++ b/lib/dotdot.h @@ -22,4 +22,4 @@ * ***************************************************************************/ char *Curl_dedotdotify(const char *input); -#endif +#endif /* HEADER_CURL_DOTDOT_H */ diff --git a/lib/urlapi-int.h b/lib/urlapi-int.h index a5bb8ea0b..a57d2e22b 100644 --- a/lib/urlapi-int.h +++ b/lib/urlapi-int.h @@ -30,4 +30,4 @@ bool Curl_is_absolute_url(const char *url, char *scheme, size_t buflen); char *Curl_concat_url(const char *base, const char *relurl); size_t Curl_strlen_url(const char *url, bool relative); void Curl_strcpy_url(char *output, const char *url, bool relative); -#endif +#endif /* HEADER_CURL_URLAPI_INT_H */