mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
ctdb-daemon: Switch some variables to unsigned
These should be unsigned but luck is currently on our side. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
21b9844bcb
commit
f9f60c2a60
@ -824,7 +824,7 @@ static void
|
||||
ctdb_update_db_stat_hot_keys(struct ctdb_db_context *ctdb_db, TDB_DATA key,
|
||||
unsigned int count)
|
||||
{
|
||||
int i, id;
|
||||
unsigned int i, id;
|
||||
char *keystr;
|
||||
|
||||
/* smallest value is always at index 0 */
|
||||
|
@ -1597,7 +1597,7 @@ int ctdb_set_db_sticky(struct ctdb_context *ctdb, struct ctdb_db_context *ctdb_d
|
||||
|
||||
void ctdb_db_statistics_reset(struct ctdb_db_context *ctdb_db)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
for (i=0; i<MAX_HOT_KEYS; i++) {
|
||||
if (ctdb_db->hot_keys[i].key.dsize > 0) {
|
||||
@ -1616,8 +1616,8 @@ int32_t ctdb_control_get_db_statistics(struct ctdb_context *ctdb,
|
||||
{
|
||||
struct ctdb_db_context *ctdb_db;
|
||||
struct ctdb_db_statistics_old *stats;
|
||||
int i;
|
||||
int len;
|
||||
unsigned int i;
|
||||
size_t len;
|
||||
char *ptr;
|
||||
|
||||
ctdb_db = find_ctdb_db(ctdb, db_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user