openbsd-ports/cad/chipmunk/patches/patch-psys_src_lunix_pas_c
espie a8c2b00374 local function declarations don't mean anything in C, and gcc4 complains
more loudly.

regen patches with newer diff while I'm there.
2010-05-09 17:18:53 +00:00

13 lines
460 B
Plaintext

$OpenBSD: patch-psys_src_lunix_pas_c,v 1.2 2010/05/09 17:18:53 espie Exp $
--- psys/src/lunix_pas.c.orig Wed Mar 12 23:47:35 2003
+++ psys/src/lunix_pas.c Sun May 9 19:11:21 2010
@@ -17,7 +17,7 @@ Void lunix_intToDate (long idate, daterec *date, timer
{
struct tm *temp_tm;
- temp_tm = localtime(&idate);
+ temp_tm = localtime((time_t *)&idate);
date->year = temp_tm->tm_year;
date->day = temp_tm->tm_mday;
date->month = temp_tm->tm_mon + 1;