From 3dde0cbb769b92d922be13677ad076cae9b6a693 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Jan 2009 12:03:45 +0100 Subject: s3:smbd: move all globals and static variables in globals.[ch] The goal is to move all this variables into a big context structure. metze --- source3/smbd/dfree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd/dfree.c') diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c index cd09d739236..dc5719a4a50 100644 --- a/source3/smbd/dfree.c +++ b/source3/smbd/dfree.c @@ -18,6 +18,7 @@ */ #include "includes.h" +#include "smbd/globals.h" /**************************************************************************** Normalise for DOS usage. @@ -150,10 +151,9 @@ uint64_t sys_disk_free(connection_struct *conn, const char *path, bool small_que } if ((*dsize)<1) { - static bool done = false; - if (!done) { + if (!dfree_broken) { DEBUG(0,("WARNING: dfree is broken on this system\n")); - done=true; + dfree_broken=true; } *dsize = 20*1024*1024/(*bsize); *dfree = MAX(1,*dfree); -- cgit v1.2.1