1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

lib: Fix signed/unsigned comparisons

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2014-12-03 15:54:19 +01:00 committed by Jeremy Allison
parent accb6b4fb8
commit d6e2db6f52
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ print the data_blob as hex string
**/
_PUBLIC_ char *data_blob_hex_string_lower(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob)
{
int i;
size_t i;
char *hex_string;
hex_string = talloc_array(mem_ctx, char, (blob->length*2)+1);
@ -155,7 +155,7 @@ _PUBLIC_ char *data_blob_hex_string_lower(TALLOC_CTX *mem_ctx, const DATA_BLOB *
_PUBLIC_ char *data_blob_hex_string_upper(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob)
{
int i;
size_t i;
char *hex_string;
hex_string = talloc_array(mem_ctx, char, (blob->length*2)+1);

View File

@ -732,7 +732,7 @@ _PUBLIC_ void dump_data_pw(const char *msg, const uint8_t * data, size_t len)
*/
_PUBLIC_ bool all_zero(const uint8_t *ptr, size_t size)
{
int i;
size_t i;
if (!ptr) return true;
for (i=0;i<size;i++) {
if (ptr[i]) return false;