From: Jorrit Herder Date: Fri, 17 Jun 2005 08:52:53 +0000 (+0000) Subject: Minor changes in PM interface affected these commands. X-Git-Tag: v3.1.0~758 X-Git-Url: http://zhaoyanbai.com/repos/man.rndc.html?a=commitdiff_plain;h=f673723b1f57b1022b8382fc412a4703a899fc87;p=minix.git Minor changes in PM interface affected these commands. Getty now retrieves the actual release and version number at runtime. --- 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 {