8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / refer / glue2.c
blob5453fcaf64b788d5f5608d2a012729553d1d6a65
1 /*
2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
9 /*
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
18 char refdir[50];
20 extern int corout();
21 extern char *trimnl();
23 void
24 savedir(void)
26 if (refdir[0] == 0)
27 corout("", refdir, "/usr/bin/pwd", "", 50);
28 trimnl(refdir);
31 void
32 restodir(void)
34 chdir(refdir);