From f673723b1f57b1022b8382fc412a4703a899fc87 Mon Sep 17 00:00:00 2001 From: Jorrit Herder Date: Fri, 17 Jun 2005 08:52:53 +0000 Subject: [PATCH] Minor changes in PM interface affected these commands. Getty now retrieves the actual release and version number at runtime. --- commands/ibm/readclock.c | 2 ++ commands/simple/sysenv.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/ibm/readclock.c b/commands/ibm/readclock.c index 68741e3b0..27cc860b2 100755 --- a/commands/ibm/readclock.c +++ b/commands/ibm/readclock.c @@ -123,6 +123,7 @@ PUBLIC int main(int argc, char **argv) argc--; } +#if DEAD_CODE /* The hardware clock may run in a different time zone, likely GMT or * winter time. Select that time zone. */ @@ -135,6 +136,7 @@ PUBLIC int main(int argc, char **argv) putenv(clocktz); tzset(); } +#endif /* Read the CMOS real time clock. */ for (i = 0; i < MAX_RETRIES; i++) { diff --git a/commands/simple/sysenv.c b/commands/simple/sysenv.c index b1c693eec..cb8b87aa6 100755 --- a/commands/simple/sysenv.c +++ b/commands/simple/sysenv.c @@ -55,7 +55,7 @@ int main(int argc, char **argv) sysgetenv.val= val; sysgetenv.vallen= sizeof(val); - if (svrctl(SYSGETENV, &sysgetenv) == -1) { + if (svrctl(MMGETPARAM, &sysgetenv) == -1) { if (errno == ESRCH) { ex |= 2; } else { -- 2.44.0