1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

deskutils/xcalendar: Fix LLVM15 build

At a minimum fix an incompatible pointer to integer conversion flagged
by LLVM15. While at it include stdlib.h in preparation for additional
work needed on this port.

While at all of the above, assume care and feeding of this port.

MFH:		2023Q2
This commit is contained in:
Cy Schubert 2023-04-30 21:07:09 -07:00
parent 4cef8f14ac
commit 2a92344327
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ CATEGORIES= deskutils
MASTER_SITES= PORTS_JP
DISTNAME= ${PORTNAME}-4.0+i18n
MAINTAINER= ports@FreeBSD.org
MAINTAINER= cy@FreeBSD.org
COMMENT= Calendar with a notebook for X11 (internationalized version)
WRKSRC= ${WRKDIR}/${PORTNAME}

View File

@ -1,5 +1,5 @@
--- xcalendar.c.dist Tue Jul 4 06:59:01 1995
+++ xcalendar.c Mon Mar 12 20:53:10 2001
--- xcalendar.c.orig 1995-07-03 14:59:01.000000000 -0700
+++ xcalendar.c 2023-04-30 21:04:24.168420000 -0700
@@ -1091,10 +1091,10 @@
struct tm *
gettime()
@ -34,7 +34,7 @@
+ if (sizeof(buf) == len) {
+ buf = XtRealloc(buf, len + 1);
+ }
+ buf[len] = NULL;
+ buf[len] = 0;
+
start = buf;

View File

@ -1,5 +1,5 @@
--- xcalendar.h.orig Sun Oct 1 12:21:42 1995
+++ xcalendar.h Mon Mar 12 20:54:02 2001
--- xcalendar.h.orig 1995-09-30 20:21:42.000000000 -0700
+++ xcalendar.h 2023-04-30 21:02:14.402254000 -0700
@@ -75,7 +75,7 @@
#include <X11/Xaw/Xawi18n.h>
#endif