agetty: Change size_t to const size_t to match other function.
PATCH 1/1 agetty: Change size_t to const size_t to match other function.
In xgetdomainname() it is 'const size_t sz', however in xgethostname() it is 'size_t sz'. Add 'const' in xgethostname() to match the other function.
Signed-off-by Marlon Rac Cambasis <[email protected]>
--- term-utils/agetty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
term-utils/agetty.c +1 -1
@@ -1476,7 +1476,7 @@ static void auto_baud(struct termios *tp)static char *xgethostname (void ) {char *name; -size_t sz =get_hostname_max () +1 ; +const size_t sz =get_hostname_max () +1 ; name =malloc (sizeof (char ) * sz);if (!name)
Signature · 1 line
2.20.1