File: Recover-else-clause-in-endianess-if.patch

package info (click to toggle)
driftnet 1.5.0-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,300 kB
  • sloc: ansic: 4,296; sh: 1,704; makefile: 140
file content (23 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Origin: https://github.com/deiv/driftnet/pull/50
From: Bastian Germann <bage@debian.org>
Date: Sat, 7 Oct 2023 15:06:52 +0200
Subject: Recover else clause in endianess if

The else clause was included in the inner (GTK3) if clause in
465a1ff68a (Add RGB byte ordering implementation in PEL related macros).
---
 src/display/img.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/display/img.h b/src/display/img.h
index 331095b..2f99ada 100644
--- a/src/display/img.h
+++ b/src/display/img.h
@@ -69,6 +69,7 @@ typedef uint32_t pel;
 #   define GETB(p)             ((chan)(((p) & (pel)0xff000000) >> 24))
 #   define GETA(p)             ((chan)(((p) & (pel)0x000000ff)      ))
 #endif
+#else
 #   error "no endianness defined"
 #endif