File: time_t.patch

package info (click to toggle)
bootp 2.4.3-21.2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 924 kB
  • sloc: ansic: 11,453; makefile: 379; sh: 55
file content (25 lines) | stat: -rw-r--r-- 826 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
24
25
From: Helge Deller <deller@kernel.org>
Subject: bootp FTBFS on 32-bit architectures (with patch)
Date: Tue, 24 Dec 2024 23:15:49 +0100

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091374

Since we turned on 64-bit time_t, bootp now fails to build on 32-bit
arcgutectures.
The attached trivial patch fixes the build.

Can you please apply it for next upload? (maybe even push upstream?)

Index: bootp-2.4.3/dumptab.c
===================================================================
--- bootp-2.4.3.orig/dumptab.c
+++ bootp-2.4.3/dumptab.c
@@ -61,7 +61,7 @@ dumptab(filename)
 	int n, fd;
 	struct host *hp;
 	FILE *fp;
-	long t;
+	time_t t;
 	/* Print symbols in alphabetical order for reader's convenience. */
 	static char legend[] = "#\n# Legend:\t(see bootptab.5)\n\
 #\tfirst field -- hostname (not indented)\n\