freebsd-ports/textproc/wordnet/files/patch-ae
Mikhail Teterin 0bd5a4d536 Upgrade from 1.7.1 to 2.0. See
ftp://ftp.cogsci.princeton.edu/pub/wordnet/CHANGES.txt

Default to Tcl/Tk-8.4. Don't build in parallel, as there is a race
condition (reported by Michael Nottebrock).
2004-02-17 21:28:23 +00:00

37 lines
1.3 KiB
Text

--- src/lib/search.c Tue Jul 15 10:41:55 2003
+++ src/lib/search.c Tue Feb 17 15:59:53 2004
@@ -331,5 +331,5 @@
/* sanity check - make sure starting file offset matches first field */
if (synptr->hereiam != loc) {
- sprintf(msgbuf, "WordNet library error: no synset at location %d\n",
+ sprintf(msgbuf, "WordNet library error: no synset at location %ld\n",
loc);
display_message(msgbuf);
@@ -464,5 +464,5 @@
if (ptrtok) {
ptrtok = strtok(NULL," \n");
- sprintf(tbuf, "");
+ tbuf[0] = '\0';
while (ptrtok != NULL) {
strcat(tbuf,ptrtok);
@@ -478,5 +478,5 @@
if (keyindexfp) { /* we have unique keys */
- sprintf(tmpbuf, "%c:%8.8d", partchars[dbase], synptr->hereiam);
+ sprintf(tmpbuf, "%c:%8.8ld", partchars[dbase], synptr->hereiam);
synptr->key = GetKeyForOffset(tmpbuf);
}
@@ -2350,5 +2350,5 @@
if (offsetflag) /* print synset offset */
- sprintf(tbuf + strlen(tbuf),"{%8.8d} ", synptr->hereiam);
+ sprintf(tbuf + strlen(tbuf),"{%8.8ld} ", synptr->hereiam);
if (fileinfoflag) { /* print lexicographer file information */
sprintf(tbuf + strlen(tbuf), "<%s> ", lexfiles[synptr->fnum]);
@@ -2385,5 +2385,5 @@
if (offsetflag)
- sprintf(tbuf,"{%8.8d} ", synptr->hereiam);
+ sprintf(tbuf,"{%8.8ld} ", synptr->hereiam);
if (fileinfoflag) {
sprintf(tbuf + strlen(tbuf),"<%s> ", lexfiles[synptr->fnum]);