Deleted Added
full compact
1c1
< /* $FreeBSD: stable/9/share/examples/ses/srcs/setencstat.c 198934 2009-11-04 23:36:23Z delphij $ */
---
> /* $FreeBSD: stable/9/share/examples/ses/srcs/setencstat.c 246437 2013-02-06 22:07:38Z mav $ */
35a36,37
> #include <stddef.h>
> #include <stdint.h>
40c42,43
< #include SESINC
---
> #include <cam/scsi/scsi_all.h>
> #include <cam/scsi/scsi_enc.h>
47c50
< ses_encstat stat;
---
> encioc_enc_status_t stat;
60,62c63,65
< stat = (ses_encstat) val;
< if (ioctl(fd, SESIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
< perror("SESIOC_SETENCSTAT");
---
> stat = (encioc_enc_status_t)val;
> if (ioctl(fd, ENCIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
> perror("ENCIOC_SETENCSTAT");