Minor changes in PM interface affected these commands.

Getty now retrieves the actual release and version number at runtime.
This commit is contained in:
Jorrit Herder 2005-06-17 08:52:53 +00:00
parent 8621d392b0
commit f673723b1f
2 changed files with 3 additions and 1 deletions

View file

@ -123,6 +123,7 @@ PUBLIC int main(int argc, char **argv)
argc--; argc--;
} }
#if DEAD_CODE
/* The hardware clock may run in a different time zone, likely GMT or /* The hardware clock may run in a different time zone, likely GMT or
* winter time. Select that time zone. * winter time. Select that time zone.
*/ */
@ -135,6 +136,7 @@ PUBLIC int main(int argc, char **argv)
putenv(clocktz); putenv(clocktz);
tzset(); tzset();
} }
#endif
/* Read the CMOS real time clock. */ /* Read the CMOS real time clock. */
for (i = 0; i < MAX_RETRIES; i++) { for (i = 0; i < MAX_RETRIES; i++) {

View file

@ -55,7 +55,7 @@ int main(int argc, char **argv)
sysgetenv.val= val; sysgetenv.val= val;
sysgetenv.vallen= sizeof(val); sysgetenv.vallen= sizeof(val);
if (svrctl(SYSGETENV, &sysgetenv) == -1) { if (svrctl(MMGETPARAM, &sysgetenv) == -1) {
if (errno == ESRCH) { if (errno == ESRCH) {
ex |= 2; ex |= 2;
} else { } else {