1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00

Move usage definition out of header file to avoid issues with -fno-common.

ok deraadt@
This commit is contained in:
mortimer 2021-01-18 00:51:15 +00:00
parent 08e35e0c91
commit 2c2b851578
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rcsprog.c,v 1.162 2020/06/09 20:05:40 joris Exp $ */
/* $OpenBSD: rcsprog.c,v 1.163 2021/01/18 00:51:15 mortimer Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@ -60,6 +60,7 @@ struct rcs_prog {
{ "ident", ident_main, ident_usage },
{ "merge", merge_main, merge_usage },
};
void (*usage)(void);
struct wklhead temp_files;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rcsprog.h,v 1.64 2014/10/02 06:23:15 otto Exp $ */
/* $OpenBSD: rcsprog.h,v 1.65 2021/01/18 00:51:15 mortimer Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@ -120,7 +120,7 @@ int build_cmd(char ***, char **, int);
int rcs_getopt(int, char **, const char *);
int rcs_main(int, char **);
__dead void rcs_usage(void);
void (*usage)(void);
extern void (*usage)(void);
/* rlog.c */
int rlog_main(int, char **);