bin: use unsigned int rather than size_t.

unsigned int is a 32-bit value both on 32/64-bit targets.
This commit is contained in:
Juan RP
2020-02-22 11:29:18 +01:00
parent c031ee6945
commit bc9fab5ee8
4 changed files with 16 additions and 16 deletions

View File

@@ -33,8 +33,8 @@
#include "defs.h"
struct list_pkgver_cb {
size_t pkgver_len;
size_t maxcols;
unsigned int pkgver_len;
unsigned int maxcols;
};
int
@@ -47,7 +47,7 @@ list_pkgs_in_dict(struct xbps_handle *xhp UNUSED,
struct list_pkgver_cb *lpc = arg;
const char *pkgver = NULL, *short_desc = NULL, *state_str = NULL;
char tmp[255], *out = NULL;
size_t i, len = 0;
unsigned int i, len = 0;
pkg_state_t state;
xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
@@ -227,7 +227,7 @@ _find_longest_pkgver_cb(struct xbps_handle *xhp UNUSED,
{
struct fflongest *ffl = arg;
const char *pkgver = NULL;
size_t len;
unsigned int len;
xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
len = strlen(pkgver);