ports/sysutils/sformat/files/patch-sformat::datio.c
Marius Strobl 12657ca8d2 - Use the libschily sources taken from cdrtools 2.01.01a07 instead of those
shipping with sformat 3.5 for building sformat; the former include their
  own version of __dtoa() which is no longer externally visible with libc
  symbol versioning turned on (thus breaking the build of stock sformat).
- While here also use MASTER_SITE_LOCAL for providing a backup mirror of
  the sformat 3.5 distfile instead of using a private one.
- Fix the checksumming of sformat.dat on LP64 platforms so sformat doesn't
  erroneously complain about that file containing uncertified data there.
  Bump PORTREVISION for this.

Approved by:	netchild
2006-04-15 11:35:45 +00:00

28 lines
575 B
C

--- sformat/datio.c.orig Mon Dec 16 16:04:37 2002
+++ sformat/datio.c Mon Dec 16 16:05:11 2002
@@ -81,11 +81,7 @@
char *datpath[] = {
"",
- "/opt/schily/etc/",
- "/usr/bert/etc/",
- "/etc/",
- "/usr/etc/",
- "/opt/schily/etc/",
+ "%%DATADIR%%/",
NULL
};
@@ -166,9 +162,9 @@
{
char *word;
register unsigned char *p;
- register long sum = 0L;
- register long xsum = 0L;
- register long n;
+ register int sum = 0;
+ register int xsum = 0;
+ register int n;
BOOL chksum_ok = FALSE;
while ((n = fgetline(dat_file, linebuf, sizeof(linebuf))) >= 0) {