aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.ypxfrd
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-04-06 23:16:05 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-04-06 23:16:05 +0000
commit3a166b33235fab2284b4709062f43d8f467a74e1 (patch)
tree6bb7be697f0aa9f348d5d9b61c31744ee388d0f7 /usr.sbin/rpc.ypxfrd
parent302ab0eb27f8f98527072595258584949ce62fe8 (diff)
downloadsrc-3a166b33235fab2284b4709062f43d8f467a74e1.tar.gz
src-3a166b33235fab2284b4709062f43d8f467a74e1.zip
yp*: fix -fno-common build
This is mostly two problems spread out far and wide: - ypldap_process should be declared properly - debug is defined differently in many programs For the latter, just extern it and define it everywhere that actually needs it. This mostly works out nicely for ^/libexec/ypxfr, which can remove the assignment at the beginning of main in favor of defining it properly. -fno-common will become the default in GCC10/LLVM11. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=359677
Diffstat (limited to 'usr.sbin/rpc.ypxfrd')
-rw-r--r--usr.sbin/rpc.ypxfrd/ypxfrd_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
index 62420a48c0a9..412190c9ebe9 100644
--- a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
+++ b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
@@ -78,6 +78,8 @@ static int _rpcfdtype;
extern int _rpcsvcstate; /* Set when a request is serviced */
+int debug;
+
char *progname = "rpc.ypxfrd";
char *yp_dir = "/var/yp/";