Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- term-utils/agetty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index d5d9a91..1089c77 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1424,7 +1424,7 @@ static char *xgetdomainname(void) { #ifdef HAVE_GETDOMAINNAME char *name; - size_t sz = get_hostname_max() + 1; + const size_t sz = get_hostname_max() + 1; name = malloc(sizeof(char) * sz); if (!name) @@ -1436,8 +1436,9 @@ static char *xgetdomainname(void) } name[sz - 1] = '\0'; return name; -#endif +#else return NULL; +#endif } static char *read_os_release(struct options *op, const char *varname) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html