From d6981c2d3a7d2e24f2536e057a86871717787b1c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 3 Apr 2000 23:06:03 +0000 Subject: Fix for compiler warning about invalid structure type. jeremy. (This used to be commit 58a16e2718e6400fe9f20d61990818f2d146042f) --- source3/param/loadparm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit