From 30ee8beb9316a99e8a49993306252591106cb349 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 9 Sep 2006 10:05:58 +0000 Subject: r18301: I discovered how to load the warnings from a build farm build into emacs compile mode (hint, paste to a file, and compile as "cat filename"). This allowed me to fix nearly all the warnings for a IA_64 SuSE build very quickly. (This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667) --- source4/wrepl_server/wrepl_in_connection.c | 3 ++- source4/wrepl_server/wrepl_scavenging.c | 11 ++++++----- source4/wrepl_server/wrepl_server.c | 5 +++-- 3 files changed, 11 insertions(+), 8 deletions(-) (limited to 'source4/wrepl_server') diff --git a/source4/wrepl_server/wrepl_in_connection.c b/source4/wrepl_server/wrepl_in_connection.c index a7522a0165..5db2c883f9 100644 --- a/source4/wrepl_server/wrepl_in_connection.c +++ b/source4/wrepl_server/wrepl_in_connection.c @@ -69,7 +69,8 @@ static NTSTATUS wreplsrv_recv_request(void *private, DATA_BLOB blob) NT_STATUS_NOT_OK_RETURN(status); if (DEBUGLVL(10)) { - DEBUG(10,("Received WINS-Replication packet of length %u\n", packet_in_blob.length + 4)); + DEBUG(10,("Received WINS-Replication packet of length %u\n", + (unsigned)packet_in_blob.length + 4)); NDR_PRINT_DEBUG(wrepl_packet, &call->req_packet); } diff --git a/source4/wrepl_server/wrepl_scavenging.c b/source4/wrepl_server/wrepl_scavenging.c index 4382195d53..5628728a76 100644 --- a/source4/wrepl_server/wrepl_scavenging.c +++ b/source4/wrepl_server/wrepl_scavenging.c @@ -57,8 +57,8 @@ static NTSTATUS wreplsrv_scavenging_owned_records(struct wreplsrv_service *servi time_t now = time(NULL); const char *now_timestr; const char *action; - const char *old_state; - const char *new_state; + const char *old_state=NULL; + const char *new_state=NULL; uint32_t modify_flags; BOOL modify_record; BOOL delete_record; @@ -171,8 +171,8 @@ static NTSTATUS wreplsrv_scavenging_replica_non_active_records(struct wreplsrv_s time_t now = time(NULL); const char *now_timestr; const char *action; - const char *old_state; - const char *new_state; + const char *old_state=NULL; + const char *new_state=NULL; uint32_t modify_flags; BOOL modify_record; BOOL delete_record; @@ -435,7 +435,8 @@ static NTSTATUS wreplsrv_scavenging_replica_active_records(struct wreplsrv_servi * but we use a wins name query */ DEBUG(0,("ask wins server '%s' if '%s' with version_id:%llu still exists\n", - rec->wins_owner, nbt_name_string(rec, rec->name), rec->version)); + rec->wins_owner, nbt_name_string(rec, rec->name), + (unsigned long long)rec->version)); s = talloc_zero(tmp_mem, struct verify_state); NT_STATUS_HAVE_NO_MEMORY(s); diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c index cfd0151eb3..55ab76c228 100644 --- a/source4/wrepl_server/wrepl_server.c +++ b/source4/wrepl_server/wrepl_server.c @@ -200,7 +200,7 @@ NTSTATUS wreplsrv_load_partners(struct wreplsrv_service *service) } DEBUG(2,("wreplsrv_load_partners: %u partners found: wins_config_db seqnumber %llu\n", - res->count, service->config.seqnumber)); + res->count, (unsigned long long)service->config.seqnumber)); talloc_free(tmp_ctx); return NT_STATUS_OK; @@ -329,7 +329,8 @@ NTSTATUS wreplsrv_add_table(struct wreplsrv_service *service, ret = winsdb_set_maxVersion(service->wins_db, cur->owner.max_version); if (ret != cur->owner.max_version) { DEBUG(0,("winsdb_set_maxVersion(%llu) failed: %llu\n", - cur->owner.max_version, ret)); + (unsigned long long)cur->owner.max_version, + (unsigned long long)ret)); return NT_STATUS_INTERNAL_DB_CORRUPTION; } } -- cgit