summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Kukkukk <kukks@samba.org>2013-03-05 20:08:49 +0100
committerJeremy Allison <jra@samba.org>2013-03-05 22:49:02 +0100
commite8e3a68729074c9dafb9a41df0ffa3a49c260772 (patch)
tree7bacb94bbd33c452ff118b55ae82f34f6c5df9a5
parent0796a17aa6915be039d6f71ae2575ef525ffb6db (diff)
downloadsamba-e8e3a68729074c9dafb9a41df0ffa3a49c260772.tar.gz
samba-e8e3a68729074c9dafb9a41df0ffa3a49c260772.tar.bz2
samba-e8e3a68729074c9dafb9a41df0ffa3a49c260772.zip
Fix the build: net_serverid.c has 3 wrong format strings for 64bit vars
On two of my opensuse machines i get 3 errors, e.g.: ../source3/utils/net_serverid.c:333:3: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ [-Werror=format] cc1: some warnings being treated as errors Signed-off-by: Guenter Kukkukk <kukks@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 5 22:49:03 CET 2013 on sn-devel-104
-rw-r--r--source3/utils/net_serverid.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/utils/net_serverid.c b/source3/utils/net_serverid.c
index 90448c158a..cf2c33f895 100644
--- a/source3/utils/net_serverid.c
+++ b/source3/utils/net_serverid.c
@@ -195,8 +195,9 @@ static int wipedbs_traverse_sessions(struct smbXsrv_session_global0 *session,
rec->val = tdb_data_talloc_copy(rec, tmp);
rec->desc = talloc_asprintf(
- rec, "session[global: %u wire: %lu]",
- session->session_global_id, session->session_wire_id);
+ rec, "session[global: %u wire: %llu]",
+ session->session_global_id,
+ (long long unsigned)session->session_wire_id);
if ((rec->key.dptr == NULL) || (rec->val.dptr == NULL) ||
(rec->desc == NULL))
@@ -328,9 +329,10 @@ static int wipedbs_traverse_open(struct smbXsrv_open_global0 *open,
rec->val = tdb_data_talloc_copy(rec, tmp);
rec->desc = talloc_asprintf(
- rec, "open[global: %u persistent: %lu volatile: %lu]",
- open->open_global_id, open->open_persistent_id,
- open->open_volatile_id);
+ rec, "open[global: %u persistent: %llu volatile: %llu]",
+ open->open_global_id,
+ (long long unsigned)open->open_persistent_id,
+ (long long unsigned)open->open_volatile_id);
if ((rec->key.dptr == NULL) || (rec->val.dptr == NULL) ||
(rec->desc == NULL))