summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2020-01-28 16:36:56 -0800
committerLee Duncan <lduncan@suse.com>2020-01-28 16:36:56 -0800
commit499a006a7d6bb154f9e1ab430e4c9e231ba6096a (patch)
treebd7c8c89b65d3dfed10a6bbdb007dbf91de465fd /include
parentc1270a591ce1ae162a2d58fb7fdbe9ef1b195c19 (diff)
downloadopen-iscsi-499a006a7d6bb154f9e1ab430e4c9e231ba6096a.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_err.h6
1 files changed, 4 insertions, 2 deletions
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);