Commit 94414c2a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More signed/unsigned FlexeLinting

parent aebfbe94
...@@ -44,7 +44,7 @@ struct vopt_list { ...@@ -44,7 +44,7 @@ struct vopt_list {
struct vopt_spec { struct vopt_spec {
const struct vopt_list *vopt_list; const struct vopt_list *vopt_list;
unsigned vopt_list_n; int vopt_list_n;
const char *vopt_optstring; const char *vopt_optstring;
const char *vopt_synopsis; const char *vopt_synopsis;
const char **vopt_usage; const char **vopt_usage;
......
...@@ -109,7 +109,7 @@ enum VSL_reason_e { ...@@ -109,7 +109,7 @@ enum VSL_reason_e {
}; };
struct VSL_transaction { struct VSL_transaction {
unsigned level; int level;
uint32_t vxid; uint32_t vxid;
uint32_t vxid_parent; uint32_t vxid_parent;
enum VSL_transaction_e type; enum VSL_transaction_e type;
......
...@@ -363,7 +363,7 @@ VSL_PrintTransactions(struct VSL_data *vsl, struct VSL_transaction * const pt[], ...@@ -363,7 +363,7 @@ VSL_PrintTransactions(struct VSL_data *vsl, struct VSL_transaction * const pt[],
if (t->level) { if (t->level) {
/* Print header */ /* Print header */
if (t->level > 3) if (t->level > 3)
VSL_PRINT(fo, "*%1.1u* ", t->level); VSL_PRINT(fo, "*%1.1d* ", t->level);
else else
VSL_PRINT(fo, "%-3.*s ", VSL_PRINT(fo, "%-3.*s ",
(int)(t->level), "***"); (int)(t->level), "***");
...@@ -385,7 +385,7 @@ VSL_PrintTransactions(struct VSL_data *vsl, struct VSL_transaction * const pt[], ...@@ -385,7 +385,7 @@ VSL_PrintTransactions(struct VSL_data *vsl, struct VSL_transaction * const pt[],
if (!VSL_Match(vsl, t->c)) if (!VSL_Match(vsl, t->c))
continue; continue;
if (t->level > 3) if (t->level > 3)
VSL_PRINT(fo, "-%1.1u- ", t->level); VSL_PRINT(fo, "-%1.1d- ", t->level);
else if (t->level) else if (t->level)
VSL_PRINT(fo, "%-3.*s ", VSL_PRINT(fo, "%-3.*s ",
(int)(t->level), "---"); (int)(t->level), "---");
......
...@@ -323,7 +323,7 @@ vslc_file_delete(const struct VSL_cursor *cursor) ...@@ -323,7 +323,7 @@ vslc_file_delete(const struct VSL_cursor *cursor)
/* Read n bytes from fd into buf */ /* Read n bytes from fd into buf */
static ssize_t static ssize_t
vslc_file_readn(int fd, void *buf, size_t n) vslc_file_readn(int fd, void *buf, ssize_t n)
{ {
ssize_t t = 0; ssize_t t = 0;
ssize_t l; ssize_t l;
......
...@@ -189,7 +189,7 @@ struct VSLQ { ...@@ -189,7 +189,7 @@ struct VSLQ {
struct vtx_tree tree; struct vtx_tree tree;
VTAILQ_HEAD(,vtx) ready; VTAILQ_HEAD(,vtx) ready;
VTAILQ_HEAD(,vtx) incomplete; VTAILQ_HEAD(,vtx) incomplete;
unsigned n_outstanding; int n_outstanding;
struct chunkhead shmrefs; struct chunkhead shmrefs;
VTAILQ_HEAD(,vtx) cache; VTAILQ_HEAD(,vtx) cache;
unsigned n_cache; unsigned n_cache;
...@@ -205,7 +205,7 @@ struct VSLQ { ...@@ -205,7 +205,7 @@ struct VSLQ {
struct VSL_transaction *ptrans[2]; struct VSL_transaction *ptrans[2];
struct VSLC_ptr start; struct VSLC_ptr start;
ssize_t len; ssize_t len;
size_t offset; ssize_t offset;
} raw; } raw;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment