replace instances of __attribute__((__packed__)) with __packed

This commit is contained in:
perry 2007-12-15 16:03:29 +00:00
parent 241ba90c52
commit 4d096031f0
7 changed files with 26 additions and 26 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: search.c,v 1.2 2007/11/16 19:35:08 plunky Exp $ */
/* $NetBSD: search.c,v 1.3 2007/12/15 16:03:29 perry Exp $ */
/*
* search.c
@ -27,12 +27,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: search.c,v 1.2 2007/11/16 19:35:08 plunky Exp $
* $Id: search.c,v 1.3 2007/12/15 16:03:29 perry Exp $
* $FreeBSD: src/lib/libsdp/search.c,v 1.8 2007/11/16 15:13:12 emax Exp $
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: search.c,v 1.2 2007/11/16 19:35:08 plunky Exp $");
__RCSID("$NetBSD: search.c,v 1.3 2007/12/15 16:03:29 perry Exp $");
#include <sys/uio.h>
#include <netinet/in.h>
@ -56,7 +56,7 @@ sdp_search(void *xss,
struct sdp_xpdu {
sdp_pdu_t pdu;
uint16_t len;
} __attribute__ ((packed)) xpdu;
} __packed xpdu;
sdp_session_p ss = (sdp_session_p) xss;
uint8_t *req = NULL, *rsp = NULL, *rsp_tmp = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: atactl.c,v 1.48 2007/11/18 17:48:21 christos Exp $ */
/* $NetBSD: atactl.c,v 1.49 2007/12/15 16:03:29 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: atactl.c,v 1.48 2007/11/18 17:48:21 christos Exp $");
__RCSID("$NetBSD: atactl.c,v 1.49 2007/12/15 16:03:29 perry Exp $");
#endif
@ -85,7 +85,7 @@ struct ata_smart_error {
u_int8_t state;
u_int8_t lifetime[2];
} error_data;
} __attribute__((packed));
} __packed;
struct ata_smart_errorlog {
u_int8_t data_structure_revision;
@ -94,7 +94,7 @@ struct ata_smart_errorlog {
u_int16_t device_error_count;
u_int8_t reserved[57];
u_int8_t checksum;
} __attribute__((packed));
} __packed;
struct command {
const char *cmd_name;

View File

@ -1,4 +1,4 @@
/* $NetBSD: device.c,v 1.1 2007/11/09 21:18:25 plunky Exp $ */
/* $NetBSD: device.c,v 1.2 2007/12/15 16:03:30 perry Exp $ */
/*-
* Copyright (c) 2007 Iain Hibbert
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: device.c,v 1.1 2007/11/09 21:18:25 plunky Exp $");
__RCSID("$NetBSD: device.c,v 1.2 2007/12/15 16:03:30 perry Exp $");
#include <bluetooth.h>
#include <stdbool.h>
@ -46,7 +46,7 @@ struct stored_link_keys {
bdaddr_t addr;
uint8_t key[HCI_KEY_SIZE];
} key[1];
} __attribute__ ((__packed__));
} __packed;
/*
* generic request

View File

@ -1,4 +1,4 @@
/* $NetBSD: iopctl.c,v 1.14 2007/03/26 23:08:29 hubertf Exp $ */
/* $NetBSD: iopctl.c,v 1.15 2007/12/15 16:03:30 perry Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#ifndef lint
#include <sys/cdefs.h>
__RCSID("$NetBSD: iopctl.c,v 1.14 2007/03/26 23:08:29 hubertf Exp $");
__RCSID("$NetBSD: iopctl.c,v 1.15 2007/12/15 16:03:30 perry Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -205,7 +205,7 @@ getparam(int tid, int group, void *pbuf, int pbufsize)
struct {
struct i2o_param_op_list_header olh;
struct i2o_param_op_all_template oat;
} __attribute__ ((__packed__)) req;
} __packed req;
mb.msgflags = I2O_MSGFLAGS(i2o_util_params_op);
mb.msgfunc = I2O_MSGFUNC(tid, I2O_UTIL_PARAMS_GET);
@ -347,7 +347,7 @@ showddmid(char **argv)
struct i2o_param_read_results prr;
struct i2o_param_ddm_identity di;
char padding[128];
} __attribute__ ((__packed__)) p;
} __packed p;
char ident[128];
getparam(gettid(argv), I2O_PARAM_DDM_IDENTITY, &p, sizeof(p));
@ -371,7 +371,7 @@ showdevid(char **argv)
struct i2o_param_read_results prr;
struct i2o_param_device_identity di;
char padding[128];
} __attribute__ ((__packed__)) p;
} __packed p;
char ident[128];
getparam(gettid(argv), I2O_PARAM_DEVICE_IDENTITY, &p, sizeof(p));

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.4 2002/04/07 20:18:01 ad Exp $ */
/* $NetBSD: util.c,v 1.5 2007/12/15 16:03:30 perry Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -64,7 +64,7 @@
#ifndef lint
#include <sys/cdefs.h>
__RCSID("$NetBSD: util.c,v 1.4 2002/04/07 20:18:01 ad Exp $");
__RCSID("$NetBSD: util.c,v 1.5 2007/12/15 16:03:30 perry Exp $");
#endif /* not lint */
#include <sys/types.h>
@ -177,7 +177,7 @@ mlx_scsi_inquiry(int chan, int targ, char **vendor, char **device,
static struct {
struct mlx_dcdb dcdb;
struct scsipi_inquiry_data inq;
} __attribute__ ((__packed__)) dcdb_cmd;
} __packed dcdb_cmd;
struct scsipi_inquiry *inq_cmd;
int rv;

View File

@ -1,4 +1,4 @@
/* $NetBSD: server.c,v 1.3 2007/03/18 10:00:42 plunky Exp $ */
/* $NetBSD: server.c,v 1.4 2007/12/15 16:03:30 perry Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -55,12 +55,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: server.c,v 1.3 2007/03/18 10:00:42 plunky Exp $
* $Id: server.c,v 1.4 2007/12/15 16:03:30 perry Exp $
* $FreeBSD: src/usr.sbin/bluetooth/sdpd/server.c,v 1.2 2005/12/06 17:56:36 emax Exp $
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: server.c,v 1.3 2007/03/18 10:00:42 plunky Exp $");
__RCSID("$NetBSD: server.c,v 1.4 2007/12/15 16:03:30 perry Exp $");
#include <sys/param.h>
#include <sys/select.h>
@ -576,7 +576,7 @@ server_send_error_response(server_p srv, int32_t fd, uint16_t error)
struct {
sdp_pdu_t pdu;
uint16_t error;
} __attribute__ ((packed)) rsp;
} __packed rsp;
/* Prepare and send SDP error response */
rsp.pdu.pid = SDP_PDU_ERROR_RESPONSE;

View File

@ -1,4 +1,4 @@
/* $NetBSD: traceroute.c,v 1.69 2007/04/08 09:45:41 scw Exp $ */
/* $NetBSD: traceroute.c,v 1.70 2007/12/15 16:03:31 perry Exp $ */
/*
* Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997
@ -29,7 +29,7 @@ static const char rcsid[] =
#else
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997\n\
The Regents of the University of California. All rights reserved.\n");
__RCSID("$NetBSD: traceroute.c,v 1.69 2007/04/08 09:45:41 scw Exp $");
__RCSID("$NetBSD: traceroute.c,v 1.70 2007/12/15 16:03:31 perry Exp $");
#endif
#endif
@ -1307,7 +1307,7 @@ again:
u_int8_t zero;
u_int8_t protocol;
u_int16_t len;
} __attribute__((__packed__)) phdr;
} __packed phdr;
/* Checksum */
ui = (struct udpiphdr *)outip;