+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved. The Berkeley Software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
#ifndef lint
-static char *sccsid = "@(#)time.c 4.6 (Berkeley) %G%";
+static char *sccsid = "@(#)time.c 5.3 (Berkeley) %G%";
#endif
#include "sh.h"
register char **v;
{
register char *cp;
+ int nval;
v++, cp = *v++;
if (cp == 0)
- (void) setpriority(PRIO_PROCESS, 0, 4);
+ nval = 4;
else if (*v == 0 && any(cp[0], "+-"))
- (void) setpriority(PRIO_PROCESS, 0,
- getpriority(PRIO_PROCESS, 0) + getn(cp));
+ nval = getn(cp);
+ (void) setpriority(PRIO_PROCESS, 0,
+ getpriority(PRIO_PROCESS, 0) + nval);
}
ruadd(ru, ru2)