summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-03 23:06:03 +0000
committerJeremy Allison <jra@samba.org>2000-04-03 23:06:03 +0000
commitd6981c2d3a7d2e24f2536e057a86871717787b1c (patch)
treea2d5e156c85341e44221b5b9f7920b30456d288e /source3/param/loadparm.c
parent576c970aa0ecf5da6a8e6b84d0d07bcc3b2baf32 (diff)
downloadsamba-d6981c2d3a7d2e24f2536e057a86871717787b1c.tar.gz
samba-d6981c2d3a7d2e24f2536e057a86871717787b1c.tar.bz2
samba-d6981c2d3a7d2e24f2536e057a86871717787b1c.zip
Fix for compiler warning about invalid structure type.
jeremy. (This used to be commit 58a16e2718e6400fe9f20d61990818f2d146042f)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index a3b54376cc..e0cf808b57 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2061,7 +2061,7 @@ static BOOL handle_source_env(char *pszParmValue,char **ptr)
/*
* Ensure this file is owned by root and not writable by world.
*/
- if(fstat(fileno(env), &st) != 0) {
+ if(sys_fstat(fileno(env), &st) != 0) {
DEBUG(0,("handle_source_env: Failed to stat file %s, Error was %s\n", fname, strerror(errno) ));
fclose(env);
return False;