s3:printing: Fix size type in printing_db
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 16:58:38 +0000 (17:58 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:15 +0000 (23:16 +0100)
This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/printing/printing_db.c

index 1a129eaad3b7ea0cebd77eb2e339f0150b06274c..7465195b771aab33bf56d1141bbfe7144cd1d752 100644 (file)
@@ -35,7 +35,7 @@ static struct tdb_print_db *print_db_head;
 struct tdb_print_db *get_print_db_byname(const char *printername)
 {
        struct tdb_print_db *p = NULL, *last_entry = NULL;
-       int num_open = 0;
+       size_t num_open = 0;
        char *printdb_path = NULL;
        bool done_become_root = False;
        char *print_cache_path;