From: Jeremy Allison Date: Wed, 9 Feb 2011 18:43:56 +0000 (-0800) Subject: Fix up some buildfarm warnings. X-Git-Tag: tevent-0.9.11~811 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c377b0e71893e2c054a179aa6e3f8c6742be0371;p=thirdparty%2Fsamba.git Fix up some buildfarm warnings. --- diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c index 8ebc4f474f6..0020fc675ed 100644 --- a/source3/lib/dbwrap_util.c +++ b/source3/lib/dbwrap_util.c @@ -118,7 +118,7 @@ static NTSTATUS dbwrap_change_uint32_atomic_action(struct db_context *db, void *private_data) { struct db_record *rec; - uint32 val = -1; + uint32_t val = (uint32_t)-1; uint32_t v_store; NTSTATUS ret; struct dbwrap_change_uint32_atomic_context *state; diff --git a/source3/lib/system.c b/source3/lib/system.c index 57434f2d421..1783fda6abf 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -2716,7 +2716,7 @@ int sys_getnameinfo(const struct sockaddr *psa, int sys_connect(int fd, const struct sockaddr * addr) { - socklen_t salen = -1; + socklen_t salen = (socklen_t)-1; if (addr->sa_family == AF_INET) { salen = sizeof(struct sockaddr_in); diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index fcc4b8d54ca..6edf64deeab 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -2020,7 +2020,7 @@ char *base64_encode_data_blob(TALLOC_CTX *mem_ctx, DATA_BLOB data) uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr) { - uint64_t val = -1; + uint64_t val = (uint64_t)-1; const char *p = nptr; if (!p) { diff --git a/source3/libsmb/cli_np_tstream.c b/source3/libsmb/cli_np_tstream.c index 898b40509c5..1f9e5ffd36e 100644 --- a/source3/libsmb/cli_np_tstream.c +++ b/source3/libsmb/cli_np_tstream.c @@ -82,7 +82,7 @@ static int tstream_cli_np_destructor(struct tstream_cli_np *cli_nps) * We can't do much on failure */ return 0; -}; +} struct tstream_cli_np_open_state { struct cli_state *cli;