The client expects the string-ized error code to be an 'enum fcoe_status'. This patch ensures that callers pass this type as the 'status' argument and thus provides better type checking.
Signed-off-by: Robert Love <[email protected]> Tested-by: Marcus Dennis <[email protected]> --- fcoemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fcoemon.c b/fcoemon.c index a4d1169..883b928 100644 --- a/fcoemon.c +++ b/fcoemon.c @@ -2496,7 +2496,10 @@ static void fcm_dcbd_event(char *msg, size_t len) } } -static void fcm_cli_reply(struct sock_info *r, int status) +/* + * The status is interpreted by the client as an 'enum fcoe_status'. + */ +static void fcm_cli_reply(struct sock_info *r, enum fcoe_status status) { char rbuf[MAX_MSGBUF]; snprintf(rbuf, MSG_RBUF, "%d", status); _______________________________________________ devel mailing list [email protected] https://lists.open-fcoe.org/mailman/listinfo/devel
