]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: guard conditional function declarations in header
authorKarel Zak <kzak@redhat.com>
Wed, 20 May 2026 10:44:21 +0000 (12:44 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 May 2026 10:44:21 +0000 (12:44 +0200)
Wrap agetty_update_utmp() declaration with #ifdef SYSV_STYLE and
agetty_issue_is_changed()/agetty_reload() with #ifdef AGETTY_RELOAD
to match the guards on their definitions.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/agetty.h

index 97ad81823e1e95de422848a9cc13f158e3ac18b9..00c824622d2a7ebc82235a79fb264e63947d13ce 100644 (file)
@@ -120,7 +120,9 @@ extern void agetty_load_credentials(struct agetty_options *op);
 
 extern char *agetty_xgethostname(void);
 extern char *agetty_xgetdomainname(void);
+#ifdef SYSV_STYLE
 extern void agetty_update_utmp(struct agetty_options *op);
+#endif
 extern void agetty_parse_speeds(struct agetty_options *op, char *arg);
 extern char *agetty_parse_initstring(const char *arg);
 extern void agetty_init_login_argv(char *argv[], int *argc,
@@ -154,8 +156,10 @@ extern void agetty_erase_char(int visual_count, struct chardata *cp);
 
 extern void agetty_print_issue_file(struct agetty_issue *ie, struct agetty_options *op, struct termios *tp);
 extern void agetty_eval_issue_file(struct agetty_issue *ie, struct agetty_options *op, struct termios *tp);
-extern int agetty_issue_is_changed(struct agetty_issue *ie);
 extern void agetty_show_issue(struct agetty_options *op);
+#ifdef AGETTY_RELOAD
+extern int agetty_issue_is_changed(struct agetty_issue *ie);
 extern void agetty_reload(void);
+#endif
 
 #endif /* UTIL_LINUX_AGETTY_H */