Commit dd694648 authored by Alexander Motin's avatar Alexander Motin
Browse files

cam: Fix type of elm_idx in struct enc_element.

It is a global element index, so it may need more than one byte.
For now it is only a cosmetics, since the field is never read.

MFC after:	2 weeks
parent 8c22fe46
......@@ -39,16 +39,16 @@
#include <sys/sysctl.h>
typedef struct enc_element {
uint8_t elm_idx; /* index of element */
u_int elm_idx; /* index of element */
uint8_t elm_type; /* element type */
uint8_t subenclosure; /* subenclosure id */
uint8_t type_elm_idx; /* index of element within type */
uint8_t svalid; /* enclosure information valid */
uint16_t priv; /* private data, per object */
uint8_t encstat[4]; /* state && stats */
u_int physical_path_len; /* Length of device path data. */
uint8_t *physical_path; /* Device physical path data. */
u_int physical_path_len; /* Length of device path data. */
void *elm_private; /* per-type object data */
uint16_t priv;
} enc_element_t;
typedef enum {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment