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
|
$NetBSD: patch-am,v 1.6 2009/12/18 01:09:23 abs Exp $
--- src/common/tick.c.orig 2004-08-22 20:19:11.000000000 +0000
+++ src/common/tick.c
@@ -120,7 +120,7 @@ int tick_put(Tick *tic, char *name)
fprintf(fp, "CRC %08lX\r\n", tic->crc);
fprintf(fp, "Created %s\r\n", tic->created);
fprintf(fp, "Size %lu\r\n", tic->size);
- fprintf(fp, "Date %ld\r\n", tic->date);
+ fprintf(fp, "Date %ld\r\n", (long) tic->date);
for(pl=tic->path.first; pl; pl=pl->next)
fprintf(fp, "Path %s\r\n", pl->line);
for(p=tic->seenby.first; p; p=p->next)
@@ -278,8 +278,8 @@ void tick_debug(Tick *tic, int lvl)
for(p=tic->seenby.first; p; p=p->next)
debug(lvl, "Seenby : %s", znfp1(&p->node));
debug(lvl, "Pw : %s", tic->pw);
- debug(lvl, "Release : %ld", tic->release);
- debug(lvl, "Date : %ld", tic->date);
+ debug(lvl, "Release : %ld", (long) tic->release);
+ debug(lvl, "Date : %ld", (long) tic->date);
for(pl=tic->app.first; pl; pl=pl->next)
debug(lvl, "App : %s", pl->line);
}
@@ -367,6 +367,6 @@ void tick_add_path(Tick *tic)
now = time(NULL);
tl_appendf(&tic->path, "%s %ld %s",
- znf1(cf_addr()), now, date(DATE_TICK_PATH, &now));
+ znf1(cf_addr()), (long) now, date(DATE_TICK_PATH, &now));
}
|