File: time.patch

package info (click to toggle)
uronode 2.15-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: ansic: 6,354; sh: 289; makefile: 102
file content (39 lines) | stat: -rw-r--r-- 1,000 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Ensure newer compilers don't choke on times
 Convert the times held as long int to time_t to build nicely.
Author: Dave Hibberd <hibby@debian.org>
Last-Update: 2024-10-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/user.c
+++ b/user.c
@@ -132,7 +132,7 @@
   struct tm *tp;
   struct proc_nr_nodes *np;
   char buf[80];
-  long l;
+  time_t l;
   axio_puts("",NodeIo);
   if ((f = fopen(DATA_NODE_LOGIN_FILE, "r")) == NULL) {
     node_perror(DATA_NODE_LOGIN_FILE, errno);
--- a/command.c
+++ b/command.c
@@ -996,7 +996,7 @@
   struct tm *tp;
   struct proc_nr_nodes *np;
   char buf[80];
-  long l;
+  time_t l;
   axio_puts("",NodeIo);
   if ((f = fopen(DATA_NODE_LOGIN_FILE, "r")) == NULL) {
     node_perror(DATA_NODE_LOGIN_FILE, errno);
--- a/system.c
+++ b/system.c
@@ -441,7 +441,7 @@
 
 struct nodelastlog {
   char ll_user[8];
-  long ll_time;
+  time_t ll_time;
   char ll_line[LAST_DATA_SIZE];
   char ll_host[LAST_DATA_SIZE];
   int  ll_count;