[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Tue Dec 6 11:40:01 UTC 2022


The branch, master has been updated
       via  0c2146eb00c lib/compression: Include missing stat header file
      from  f569f2c17f8 python/samba: use s3 param samba config parsing

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 0c2146eb00c0e4fc4c933c3d5f2bf3469c3671ba
Author: Anoop C S <anoopcs at samba.org>
Date:   Mon Dec 5 16:24:46 2022 +0530

    lib/compression: Include missing stat header file
    
    <sys/stat.h> was missing from compression library tests which resulted
    in the following compile time error:
    
    ../../lib/compression/tests/test_lzx_huffman.c: In function
                                                       ‘datablob_from_file’:
    ../../lib/compression/tests/test_lzx_huffman.c:383:21: error:
                                             storage size of ‘s’ isn’t known
      383 |         struct stat s;
          |                     ^
    ../../lib/compression/tests/test_lzx_huffman.c:389:15: warning:
        implicit declaration of function ‘fstat’ [-Wimplicit-function-declaration]
      389 |         ret = fstat(fileno(fh), &s);
          |               ^~~~~
    
    Signed-off-by: Anoop C S <anoopcs at samba.org>
    Reviewed-by: Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    
    Autobuild-User(master): Volker Lendecke <vl at samba.org>
    Autobuild-Date(master): Tue Dec  6 11:39:16 UTC 2022 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 lib/compression/tests/test_lzx_huffman.c    | 1 +
 lib/compression/tests/test_lzxpress_plain.c | 1 +
 2 files changed, 2 insertions(+)


Changeset truncated at 500 lines:

diff --git a/lib/compression/tests/test_lzx_huffman.c b/lib/compression/tests/test_lzx_huffman.c
index da094555c2d..3a055183f7b 100644
--- a/lib/compression/tests/test_lzx_huffman.c
+++ b/lib/compression/tests/test_lzx_huffman.c
@@ -27,6 +27,7 @@
 #include <setjmp.h>
 #include <cmocka.h>
 #include <stdbool.h>
+#include <sys/stat.h>
 #include "replace.h"
 #include <talloc.h>
 #include "lzxpress_huffman.h"
diff --git a/lib/compression/tests/test_lzxpress_plain.c b/lib/compression/tests/test_lzxpress_plain.c
index 57130852fc9..17e5a26207b 100644
--- a/lib/compression/tests/test_lzxpress_plain.c
+++ b/lib/compression/tests/test_lzxpress_plain.c
@@ -21,6 +21,7 @@
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>
+#include <sys/stat.h>
 #include <cmocka.h>
 #include "includes.h"
 #include "talloc.h"


-- 
Samba Shared Repository



More information about the samba-cvs mailing list