X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=a0f64bb04c6ca80dfa316cb6e76fa43d34afb4ba;hb=22ae0c3549628739ca7c40e48ce1a276469ded92;hp=5c387bdb8fe333d6272f02049d6b672eb7105e8a;hpb=c2dc3784f127ef6db6e9960a4abecc1aab6f4e31;p=tinc diff --git a/src/utils.h b/src/utils.h index 5c387bdb..a0f64bb0 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,3 +1,6 @@ +#ifndef TINC_UTILS_H +#define TINC_UTILS_H + /* utils.h -- header file for utils.c Copyright (C) 1999-2005 Ivo Timmermans @@ -18,9 +21,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_UTILS_H__ -#define __TINC_UTILS_H__ - extern int hex2bin(const char *src, void *dst, int length); extern int bin2hex(const void *src, char *dst, int length); @@ -50,8 +50,8 @@ extern const char *winerror(int); extern unsigned int bitfield_to_int(const void *bitfield, size_t size); -extern bool check_id(const char *); -extern bool check_netname(const char *, bool strict); +extern bool check_id(const char *id); +extern bool check_netname(const char *netname, bool strict); char *replace_name(const char *name); -#endif /* __TINC_UTILS_H__ */ +#endif