summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/make_smbcodepage.c4
-rw-r--r--source3/utils/testparm.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/make_smbcodepage.c b/source3/utils/make_smbcodepage.c
index 155ed5aeb5..97dfb715b0 100644
--- a/source3/utils/make_smbcodepage.c
+++ b/source3/utils/make_smbcodepage.c
@@ -170,7 +170,7 @@ int do_compile(int codepage, char *input_file, char *output_file)
char output_buf[CODEPAGE_HEADER_SIZE + 4 * MAXCODEPAGELINES];
int num_lines = 0;
int i = 0;
- struct stat st;
+ SMB_STRUCT_STAT st;
/* Get the size of the input file. Read the entire thing into memory. */
if(stat((char *)input_file, &st)!= 0)
@@ -310,7 +310,7 @@ definition file. File %s has %d.\n", prog_name, MAXCODEPAGELINES, input_file, nu
int do_decompile( int codepage, char *input_file, char *output_file)
{
uint32 size = 0;
- struct stat st;
+ SMB_STRUCT_STAT st;
char header_buf[CODEPAGE_HEADER_SIZE];
char *buf = NULL;
FILE *fp = NULL;
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index a5205878cc..d41e8b9f66 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -47,7 +47,7 @@ extern pstring myhostname;
void do_global_checks(void)
{
- struct stat st;
+ SMB_STRUCT_STAT st;
if (lp_security() > SEC_SHARE && lp_revalidate(-1)) {
printf("WARNING: the 'revalidate' parameter is ignored in all but \
'security=share' mode.\n");