summaryrefslogtreecommitdiffstats
path: root/sys/netncp
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-09-23 18:54:32 +0000
committeralfred <alfred@FreeBSD.org>2002-09-23 18:54:32 +0000
commitac315391ceb9f2631fcaa72a6ab3da6255a6598d (patch)
tree8158103cc2a98a399f6b85e558005d61c5a4bb29 /sys/netncp
parent5dc0248605e168960cde445de06c93cf34d5030b (diff)
downloadFreeBSD-src-ac315391ceb9f2631fcaa72a6ab3da6255a6598d.zip
FreeBSD-src-ac315391ceb9f2631fcaa72a6ab3da6255a6598d.tar.gz
use __packed.
Diffstat (limited to 'sys/netncp')
-rw-r--r--sys/netncp/ncp.h20
-rw-r--r--sys/netncp/ncp_file.h2
-rw-r--r--sys/netncp/ncp_ncp.h6
3 files changed, 14 insertions, 14 deletions
diff --git a/sys/netncp/ncp.h b/sys/netncp/ncp.h
index 57c4cae..c00f935 100644
--- a/sys/netncp/ncp.h
+++ b/sys/netncp/ncp.h
@@ -66,7 +66,7 @@ struct ncp_fh_s {
u_int32_t val32;
u_int16_t val16;
} val;
-} __attribute__((packed));
+} __packed;
typedef struct ncp_fh_s ncp_fh;
@@ -133,7 +133,7 @@ struct nw_queue_job_entry {
u_int32_t ServerObjectID;
char JobTextDescription[50];
char ClientRecordArea[152];
-} __attribute__((packed));
+} __packed;
struct queue_job {
struct nw_queue_job_entry j;
@@ -168,13 +168,13 @@ struct print_job_record {
char FnameBanner[13];
char FnameHeader[14];
char Path[80];
-} __attribute__((packed));
+} __packed;
struct ncp_station_addr {
u_int32_t NetWork;
u_int8_t Node[6];
u_int16_t Socket;
-} __attribute__((packed));
+} __packed;
struct ncp_prop_login_control {
u_int8_t AccountExpireDate[3];
@@ -193,7 +193,7 @@ struct ncp_prop_login_control {
u_int16_t BadLoginCount;
u_int32_t BadLoginCountDown;
struct ncp_station_addr LastIntruder;
-} __attribute__((packed));
+} __packed;
#define NCP_VOLNAME_LEN (16)
#define NCP_NUMBER_OF_VOLUMES (64)
@@ -313,7 +313,7 @@ struct nw_entry_info {
u_int32_t NSCreator;
u_int8_t nameLen;
u_int8_t entryName[256];
-} __attribute__((packed));
+} __packed;
typedef struct nw_entry_info NW_ENTRY_INFO;
@@ -347,13 +347,13 @@ struct nw_modify_dos_info {
u_int16_t inheritanceGrantMask;
u_int16_t inheritanceRevokeMask;
u_int32_t maximumSpace;
-} __attribute__((packed));
+} __packed;
struct nw_search_seq {
u_int8_t volNumber;
u_int32_t dirNumber;
u_int32_t searchDirNumber;
-} __attribute__((packed));
+} __packed;
typedef struct nw_search_seq SEARCH_SEQUENCE;
@@ -376,7 +376,7 @@ struct ncp_file_server_info {
u_int8_t RestrictionLevel;
u_int8_t InternetBridge;
u_int8_t Reserved[60];
-} __attribute__((packed));
+} __packed;
struct nw_time_buffer {
u_int8_t year;
@@ -386,6 +386,6 @@ struct nw_time_buffer {
u_int8_t minute;
u_int8_t second;
u_int8_t wday;
-} __attribute__((packed));
+} __packed;
#endif /*_NCP_H_ */
diff --git a/sys/netncp/ncp_file.h b/sys/netncp/ncp_file.h
index e5ecea9..24dae7e 100644
--- a/sys/netncp/ncp_file.h
+++ b/sys/netncp/ncp_file.h
@@ -58,7 +58,7 @@ typedef struct {
nuint32 deletedDateAndTime;
nuint32 deletorID;
nuint8 reserved3 [16];
-} __attribute__((packed)) NWDELETED_INFO;
+} __packed NWDELETED_INFO;
__BEGIN_DECLS
diff --git a/sys/netncp/ncp_ncp.h b/sys/netncp/ncp_ncp.h
index d715399..68c0042 100644
--- a/sys/netncp/ncp_ncp.h
+++ b/sys/netncp/ncp_ncp.h
@@ -62,7 +62,7 @@ struct ncp_rqhdr {
u_int8_t conn_high;
u_int8_t fn;
u_int8_t data[0];
-} __attribute__((packed));
+} __packed;
struct ncp_rphdr {
@@ -74,7 +74,7 @@ struct ncp_rphdr {
u_int8_t completion_code;
u_int8_t connection_state;
u_int8_t data[0];
-}__attribute__((packed));
+}__packed;
#define BFL_ABT 0x04
#define BFL_EOB 0x10
@@ -103,7 +103,7 @@ struct ncp_bursthdr {
u_long bh_dofs; /* HL */
u_short bh_dlen; /* HL */
u_short bh_misfrags; /* HL */
-} __attribute__((packed));
+} __packed;
struct ncp_conn;
struct ncp_conn_args;
OpenPOWER on IntegriCloud