File: fix-packed-ignore-warning.patch

package info (click to toggle)
pktstat 1.8.5-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 916 kB
  • sloc: ansic: 9,195; sh: 1,032; makefile: 34
file content (31 lines) | stat: -rw-r--r-- 1,284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Syed Shahrukh Hussain <syed.shahrukh@ossrevival.org>
Date: Wed, 2 Oct 2025 10:00:00 +0500
Subject: [PATCH] Fix packed attribute warning.
Forwarded: https://github.com/dleonard0/pktstat/pull/8

diff --git a/ipx.c b/ipx.c
index 35e9ddb..bf595d5 100644
--- a/ipx.c
+++ b/ipx.c
@@ -43,16 +43,16 @@
 #  define XXX     __attribute__((__packed__))
 typedef struct {
 	u_int32_t 	net		XXX;
-	u_int8_t 	host[6] 	XXX;
+	u_int8_t 	host[6];
 	u_int16_t	port		XXX;
 } ipx_address, ipx_addr_t;
 struct ipxhdr {
         u_int16_t       ipx_sum XXX;    /* Checksum */
         u_int16_t       ipx_len XXX;    /* Length, in bytes, including header */
-        u_int8_t        ipx_tc  XXX;    /* Transport Control (i.e. hop count) */
-        u_int8_t        ipx_pt  XXX;    /* Packet Type (i.e. lev 2 protocol) */
-        ipx_addr_t      ipx_dna XXX;    /* Destination Network Address */
-        ipx_addr_t      ipx_sna XXX;    /* Source Network Address */
+        u_int8_t        ipx_tc;         /* Transport Control (i.e. hop count) */
+        u_int8_t        ipx_pt;         /* Packet Type (i.e. lev 2 protocol) */
+        ipx_addr_t      ipx_dna;        /* Destination Network Address */
+        ipx_addr_t      ipx_sna;        /* Source Network Address */
 };
 #  undef XXX
 # else