diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/iscsi_err.h | 6 |
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); |