@@ -295,7 +295,7 @@ concat_subtype_lookup(uint32_t type, unsigned int n)
}
extern const struct datatype *
-set_datatype_alloc(const struct datatype *orig_dtype, unsigned int byteorder);
+set_datatype_alloc(const struct datatype *orig_dtype, enum byteorder byteorder);
extern void time_print(uint64_t msec, struct output_ctx *octx);
extern struct error_record *time_parse(const struct location *loc,
@@ -1304,7 +1304,7 @@ const struct datatype *concat_type_alloc(uint32_t type)
}
const struct datatype *set_datatype_alloc(const struct datatype *orig_dtype,
- unsigned int byteorder)
+ enum byteorder byteorder)
{
struct datatype *dtype;
@@ -1341,7 +1341,7 @@ static int expr_evaluate_bitwise(struct eval_ctx *ctx, struct expr **expr)
struct expr *op = *expr, *left = op->left;
const struct datatype *dtype;
unsigned int max_len;
- int byteorder;
+ enum byteorder byteorder;
if (ctx->stmt_len > left->len) {
max_len = ctx->stmt_len;
Use the enum types as we have them. Signed-off-by: Thomas Haller <thaller@redhat.com> --- include/datatype.h | 2 +- src/datatype.c | 2 +- src/evaluate.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)