casting a pointer type does not magically change the size of the

referenced variable
This commit is contained in:
naddy 2013-04-03 15:35:54 +00:00
parent 8a96ac99f1
commit 396c3d5177
4 changed files with 29 additions and 17 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.16 2013/03/10 23:04:44 espie Exp $
# $OpenBSD: Makefile,v 1.17 2013/04/03 15:35:54 naddy Exp $
COMMENT= electronic CAD system
BROKEN-sparc64 = Assembler messages: Error: Illegal operands
PKGNAME= chipmunk-1.57
REVISION= 3
REVISION= 4
DISTNAME= psys-1.57
DISTFILES= psys-1.57.tar.gz webdoc1.46.tar.gz log-5.61.tar.gz \
view-1.13.tar.gz until-1.13.tar.gz wol-1.13.tar.gz \
@ -18,7 +18,7 @@ MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= X11 c m
WANTLIB= X11 c m
#MASTER_SITES= http://www.cs.berkeley.edu/~lazzaro/chipmunk/pickup/sources/
MASTER_SITES= http://www.sightly.net/distfiles/

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-psys_include_p2c_lunix_pas_h,v 1.1 2013/04/03 15:35:54 naddy Exp $
--- psys/include/p2c/lunix_pas.h.orig Wed Mar 12 23:47:35 2003
+++ psys/include/p2c/lunix_pas.h Wed Apr 3 17:29:13 2013
@@ -70,7 +70,7 @@ extern Void lunix_dologerr PP((Char *s));
extern Char *lunix_spoolname PP((Char *lunix_Result, Char *directory,
Char *extension));
extern long lunix_datetoint PP((daterec date, timerec time));
-extern Void lunix_intToDate (long idate, daterec *date, timerec *time);
+extern Void lunix_intToDate (time_t idate, daterec *date, timerec *time);
extern Void lunix_fasttime PP((lunix_fasttimerec *f));
extern Void lunix_datetostr PP((datetimerec datetime, Char *s));
extern Void lunix_qsort PP((Char *a, int n, int es, _PROCEDURE fc));

View File

@ -1,12 +1,12 @@
$OpenBSD: patch-psys_src_lunix_pas_c,v 1.2 2010/05/09 17:18:53 espie Exp $
$OpenBSD: patch-psys_src_lunix_pas_c,v 1.3 2013/04/03 15:35:54 naddy 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
+++ psys/src/lunix_pas.c Wed Apr 3 17:28:25 2013
@@ -13,7 +13,7 @@
-Void lunix_intToDate (long idate, daterec *date, timerec *time)
+Void lunix_intToDate (time_t idate, daterec *date, timerec *time)
{
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;

View File

@ -1,13 +1,13 @@
@comment $OpenBSD: PLIST,v 1.5 2004/12/30 00:17:52 espie Exp $
@comment $OpenBSD: PLIST,v 1.6 2013/04/03 15:35:54 naddy Exp $
@conflict wol-*
@conflict analog-*
bin/analog
@bin bin/analog
bin/cview
bin/diglog
@bin bin/diglog
bin/fixfet7
bin/loged
bin/until
bin/wol
@bin bin/loged
@bin bin/until
@bin bin/wol
share/chipmunk/
share/chipmunk/Makefile
share/chipmunk/actel.gate