chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide: make ++/-- usage consistent WRT spacing
[elogind.git]
/
src
/
basic
/
hostname-util.c
diff --git
a/src/basic/hostname-util.c
b/src/basic/hostname-util.c
index 23366e57bdf9ef7dee68e04cecc56dea9bc48043..3bd3a4d7b3634a4d4175600a6a639a828aed5265 100644
(file)
--- a/
src/basic/hostname-util.c
+++ b/
src/basic/hostname-util.c
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-19,14
+17,21
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <ctype.h>
+#if defined(__GLIBC__)
+# include <bits/local_lim.h>
+#endif // defined(__GLIBC__)
+#include <errno.h>
+#include <limits.h>
+#include <stdio.h>
+#include <string.h>
#include <sys/utsname.h>
#include <sys/utsname.h>
+#include <unistd.h>
//#include "fd-util.h"
#include "fileio.h"
#include "hostname-util.h"
//#include "fd-util.h"
#include "fileio.h"
#include "hostname-util.h"
+//#include "macro.h"
#include "string-util.h"
#include "string-util.h"
-#include "util.h"
#if 0 /// UNNEEDED by elogind
bool hostname_is_set(void) {
#if 0 /// UNNEEDED by elogind
bool hostname_is_set(void) {
@@
-95,7
+100,7
@@
bool hostname_is_valid(const char *s, bool allow_trailing_dot) {
return false;
dot = true;
return false;
dot = true;
- n_dots
++;
+ n_dots++;
} else {
if (!hostname_valid_char(*p))
return false;
} else {
if (!hostname_valid_char(*p))
return false;