aboutsummaryrefslogtreecommitdiff
path: root/examples/sg_excl.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2007-06-27 03:00:59 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2007-06-27 03:00:59 +0000
commitfa6966ce2412a35c576cc0cd99efcdf9be9156fb (patch)
tree4b3ee1a26b3baa56162602ecfebb6abdcadd85a3 /examples/sg_excl.c
parent666c11696c2674af4e765ba20e33d04bf01a1770 (diff)
downloadsg3_utils-fa6966ce2412a35c576cc0cd99efcdf9be9156fb.tar.gz
Load sg3_utils-1.09 into trunk/.
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@43 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'examples/sg_excl.c')
-rw-r--r--examples/sg_excl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/sg_excl.c b/examples/sg_excl.c
index 14bf1731..6199576c 100644
--- a/examples/sg_excl.c
+++ b/examples/sg_excl.c
@@ -8,7 +8,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "sg_include.h"
-#include "sg_err.h"
+#include "sg_lib.h"
/* This is a simple program that tests the O_EXCL flag in sg while
executing a SCSI INQUIRY command and a
@@ -125,10 +125,10 @@ int main(int argc, char * argv[])
/* now for the error processing */
ok = 0;
switch (sg_err_category3(&io_hdr)) {
- case SG_ERR_CAT_CLEAN:
+ case SG_LIB_CAT_CLEAN:
ok = 1;
break;
- case SG_ERR_CAT_RECOVERED:
+ case SG_LIB_CAT_RECOVERED:
printf("Recovered error on INQUIRY, continuing\n");
ok = 1;
break;
@@ -170,10 +170,10 @@ int main(int argc, char * argv[])
/* now for the error processing */
ok = 0;
switch (sg_err_category3(&io_hdr)) {
- case SG_ERR_CAT_CLEAN:
+ case SG_LIB_CAT_CLEAN:
ok = 1;
break;
- case SG_ERR_CAT_RECOVERED:
+ case SG_LIB_CAT_RECOVERED:
printf("Recovered error on Test Unit Ready, continuing\n");
ok = 1;
break;