From b89bf3a767e458cb96267c1e810cf7ce0a38a809 Mon Sep 17 00:00:00 2001 From: "Stephen M. Cameron" Date: Tue, 28 Dec 2021 10:27:59 -0500 Subject: [PATCH] snis_client: remove some bogus const type qualifiers on function return types Signed-off-by: Stephen M. Cameron --- commodities.c | 2 +- commodities.h | 2 +- snis_opcode_def.c | 4 ++-- snis_opcode_def.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commodities.c b/commodities.c index 05d4cb6c..962a33e2 100644 --- a/commodities.c +++ b/commodities.c @@ -400,7 +400,7 @@ const char *commodity_category_description(int cat) return category_description[cat]; } -const int ncommodity_categories(void) +int ncommodity_categories(void) { return ncategories; } diff --git a/commodities.h b/commodities.h index 24c85cd7..5cadd4a4 100644 --- a/commodities.h +++ b/commodities.h @@ -54,6 +54,6 @@ int lookup_commodity(struct commodity *c, int ncommodities, const char *commodit const char *commodity_category(int cat); const char *commodity_category_description(int cat); -const int ncommodity_categories(void); +int ncommodity_categories(void); #endif diff --git a/snis_opcode_def.c b/snis_opcode_def.c index 157e54ee..62c29d72 100644 --- a/snis_opcode_def.c +++ b/snis_opcode_def.c @@ -302,7 +302,7 @@ static void check_index(int index) } /* Returns payload size of an opcode (that has no subcode) */ -const int snis_opcode_payload_size(uint8_t opcode) +int snis_opcode_payload_size(uint8_t opcode) { int index = opcode * NSUBCODES; @@ -311,7 +311,7 @@ const int snis_opcode_payload_size(uint8_t opcode) } /* Returns payload size of an opcode, subcode pair */ -const int snis_opcode_subcode_payload_size(uint8_t opcode, uint8_t subcode) +int snis_opcode_subcode_payload_size(uint8_t opcode, uint8_t subcode) { int index = opcode * NSUBCODES + subcode; diff --git a/snis_opcode_def.h b/snis_opcode_def.h index 73b04c1c..f3a48921 100644 --- a/snis_opcode_def.h +++ b/snis_opcode_def.h @@ -27,9 +27,9 @@ int snis_opcode_def_init(void); /* Returns payload size of an opcode (that has no subcode) */ -const int snis_opcode_payload_size(uint8_t opcode); +int snis_opcode_payload_size(uint8_t opcode); /* Returns payload size of an opcode, subcode pair */ -const int snis_opcode_subcode_payload_size(uint8_t opcode, uint8_t subcode); +int snis_opcode_subcode_payload_size(uint8_t opcode, uint8_t subcode); /* Returns format of opcode that has no subcode */ const char *snis_opcode_format(uint8_t opcode); /* Returns format of an opcode, subcode pair */