Skip to content

Commit

Permalink
iscsi_if.h: use attribute instead of '__packed'
Browse files Browse the repository at this point in the history
More consistent, doesn't rely on __packed being defined in userspace.

Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
  • Loading branch information
khazhyk authored and gonzoleeman committed Sep 5, 2017
1 parent 5090af7 commit 7b0681f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/iscsi_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ struct iscsi_iface_param_info {
uint8_t iface_type; /* IPv4 or IPv6 */
uint8_t param_type; /* iscsi_param_type */
uint8_t value[0]; /* length sized value follows */
} __packed;
} __attribute__((__packed__));

/*
* To keep the struct iscsi_uevent size the same for userspace code
Expand Down

0 comments on commit 7b0681f

Please sign in to comment.