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>
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 */
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) {
{
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);