summaryrefslogtreecommitdiffstats
path: root/osdep-openbsd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-10-05 09:14:11 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-10-05 09:14:11 +0100
commitd51b4f92d7c9899694e9ef8334030ceb512cb2de (patch)
treea7e64cc845642381b99a8b36dc8fbdc2b77461a0 /osdep-openbsd.c
parent13360ad54157790cbbaab757f659cb6d8a4ce2c4 (diff)
Use open(".")/fchdir() to save and restore current directory rather than
getcwd()/chdir().
Diffstat (limited to 'osdep-openbsd.c')
-rw-r--r--osdep-openbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep-openbsd.c b/osdep-openbsd.c
index 7be38a91..0a4c1445 100644
--- a/osdep-openbsd.c
+++ b/osdep-openbsd.c
@@ -135,7 +135,7 @@ error:
return (NULL);
}
-char*
+char *
osdep_get_cwd(int fd)
{
int name[] = { CTL_KERN, KERN_PROC_CWD, 0 };