From 499a006a7d6bb154f9e1ab430e4c9e231ba6096a Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Tue, 28 Jan 2020 16:36:56 -0800 Subject: Updates to support gcc -fno-common option. This meant cleaning up the definition of some global variables, so that they were only defined in one place and refered to as external elsewhere. --- include/iscsi_err.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/iscsi_err.h b/include/iscsi_err.h index ed000dd..04a8723 100644 --- a/include/iscsi_err.h +++ b/include/iscsi_err.h @@ -4,7 +4,7 @@ #ifndef _ISCSI_ERR_ #define _ISCSI_ERR_ -enum { +enum iscsi_error_list { ISCSI_SUCCESS = 0, /* Generic error */ ISCSI_ERR = 1, @@ -73,7 +73,9 @@ enum { /* Always last. Indicates end of error code space */ ISCSI_MAX_ERR_VAL, -} iscsi_err; +}; + +extern enum iscsi_error_list iscsi_err; extern void iscsi_err_print_msg(int err); extern char *iscsi_err_to_str(int err); -- cgit v1.2.1