From 5a1b795757080540fb50aa23e92462f73c7ddda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Thu, 1 Oct 2020 15:31:55 +0000 Subject: Fix build with -fno-common While here fix one program error ("%s" format without argument). --- misc/orville-write/files/patch-getutent.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'misc/orville-write/files/patch-getutent.c') diff --git a/misc/orville-write/files/patch-getutent.c b/misc/orville-write/files/patch-getutent.c index acbdef74c917..71bf0750dae3 100644 --- a/misc/orville-write/files/patch-getutent.c +++ b/misc/orville-write/files/patch-getutent.c @@ -1,6 +1,6 @@ ---- getutent.c.orig 2000-01-31 22:02:45.000000000 -0800 -+++ getutent.c 2010-02-02 22:53:30.347068707 -0800 -@@ -20,18 +20,8 @@ +--- getutent.c.orig 2000-02-01 06:02:45 UTC ++++ getutent.c +@@ -20,18 +20,8 @@ static int openut() { if (utmp.state == 0) { @@ -19,7 +19,7 @@ } } -@@ -42,8 +32,7 @@ +@@ -42,8 +32,7 @@ static int openut() void endutent() { if (utmp.state == 1) @@ -29,7 +29,7 @@ } -@@ -52,8 +41,7 @@ +@@ -52,8 +41,7 @@ void endutent() void setutent() { @@ -39,7 +39,7 @@ } -@@ -75,9 +63,9 @@ +@@ -75,9 +63,9 @@ int utmpname(const char *file) /* GETUTENT - Read the next entry from the utmp file into static storage. */ @@ -51,7 +51,7 @@ switch (utmp.state) { -@@ -85,11 +73,11 @@ +@@ -85,11 +73,11 @@ static struct utmp ut; openut(); /* Drop through */ case 1: @@ -66,7 +66,7 @@ } } -@@ -100,9 +88,9 @@ +@@ -100,9 +88,9 @@ static struct utmp ut; * we conform with Linux and Solaris. */ @@ -78,7 +78,7 @@ switch (utmp.state) { -@@ -110,20 +98,20 @@ +@@ -110,20 +98,20 @@ static struct utmp ut; openut(); /* Drop through */ case 1: -- cgit v1.2.3