chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v230: Add utmp support to make wall message to work properly.
[elogind.git]
/
src
/
basic
/
hostname-util.c
diff --git
a/src/basic/hostname-util.c
b/src/basic/hostname-util.c
index d8d05df3cbdd00819157da95c41e5af9cfd4c91c..a5cb62eb661e03eaf16682241f82d830ee952e46 100644
(file)
--- a/
src/basic/hostname-util.c
+++ b/
src/basic/hostname-util.c
@@
-45,6
+45,7
@@
bool hostname_is_set(void) {
return true;
}
return true;
}
+#endif // 0
char* gethostname_malloc(void) {
struct utsname u;
char* gethostname_malloc(void) {
struct utsname u;
@@
-61,6
+62,7
@@
char* gethostname_malloc(void) {
return strdup(u.nodename);
}
return strdup(u.nodename);
}
+#if 0 /// UNNEEDED by elogind
int gethostname_strict(char **ret) {
struct utsname u;
char *k;
int gethostname_strict(char **ret) {
struct utsname u;
char *k;