summaryrefslogtreecommitdiff
path: root/sysutils/runwhen/files/patch-src_rw__scan.c
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2020-04-24 18:39:56 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2020-04-24 18:39:56 +0000
commita3a400c0f08a6da24bb106ba713ccf61c637875e (patch)
tree0d109f9052e75fca2bdd72dee8a7620b9c24a727 /sysutils/runwhen/files/patch-src_rw__scan.c
parentnet/smb4k: reinstate port (diff)
sysutils/runwhen: Add support for skalibs 2.9.2.1
Five years after its latest release runwhen 2015.02.24 is no longer compatible the latest skalibs version (2.9.2.1 from 16 days ago). The attached patch allows the old runwhen code to build against the latest skalibs version. It converts the enum values in rw-match.c from lower to upper case to avoid a name collision on "div", deals with the renaming of tainnow.lib to to sysclock.lib and replaces a call to the deprecated env_get() function with getenv(). This gets rid of all compiler warnings and errors. PR: 245836 Submitted by: crest@rlwinm.de
Notes
Notes: svn path=/head/; revision=532885
Diffstat (limited to 'sysutils/runwhen/files/patch-src_rw__scan.c')
-rw-r--r--sysutils/runwhen/files/patch-src_rw__scan.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/runwhen/files/patch-src_rw__scan.c b/sysutils/runwhen/files/patch-src_rw__scan.c
new file mode 100644
index 000000000000..77c2342d960b
--- /dev/null
+++ b/sysutils/runwhen/files/patch-src_rw__scan.c
@@ -0,0 +1,11 @@
+--- src/rw_scan.c.orig 2020-04-22 21:45:48 UTC
++++ src/rw_scan.c
+@@ -14,7 +14,7 @@ void rw_scan(tain_t* stamp, char const* text) {
+ char const* x;
+ switch (text[0]) {
+ case '$':
+- x=env_get(text+1);
++ x=getenv(text+1);
+ if (x==NULLP) DIE_MALFORMED("timestamp", text);
+ text=x;
+ i=tain_scan(text, stamp);