summaryrefslogtreecommitdiffstats
path: root/source/lib/system.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-14 17:38:29 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-14 17:38:29 +0000
commitc7ee025ead4a85b6fa44a832047b878451845fb6 (patch)
treeb57a953262c85164d9cf451756555043935ce6ee /source/lib/system.c
parent6f9228b01131d0fad464971297393ccb8a15703f (diff)
downloadsamba-c7ee025ead4a85b6fa44a832047b878451845fb6.tar.gz
samba-c7ee025ead4a85b6fa44a832047b878451845fb6.tar.xz
samba-c7ee025ead4a85b6fa44a832047b878451845fb6.zip
this is the bug change to using connection_struct* instead of cnum.
Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
Diffstat (limited to 'source/lib/system.c')
-rw-r--r--source/lib/system.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/lib/system.c b/source/lib/system.c
index ab65339f6ee..255b1c7b49b 100644
--- a/source/lib/system.c
+++ b/source/lib/system.c
@@ -129,7 +129,7 @@ a simple opendir() wrapper
********************************************************************/
DIR *sys_opendir(char *dname)
{
- return(opendir(dos_to_unix(dname,False)));
+ return(opendir(dos_to_unix(dname,False)));
}
@@ -342,15 +342,15 @@ for getwd
********************************************************************/
char *sys_getwd(char *s)
{
- char *wd;
+ char *wd;
#ifdef HAVE_GETCWD
- wd = (char *)getcwd(s, sizeof (pstring));
+ wd = (char *)getcwd(s, sizeof (pstring));
#else
- wd = (char *)getwd(s);
+ wd = (char *)getwd(s);
#endif
- if (wd)
- unix_to_dos (wd, True);
- return wd;
+ if (wd)
+ unix_to_dos(wd, True);
+ return wd;
}
/*******************************************************************