summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/dbwrap_util.c2
-rw-r--r--source3/lib/system.c2
-rw-r--r--source3/lib/util_str.c2
-rw-r--r--source3/libsmb/cli_np_tstream.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c
index 8ebc4f474f..0020fc675e 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 57434f2d42..1783fda6ab 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 fcc4b8d54c..6edf64deea 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 898b40509c..1f9e5ffd36 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;