Article View: news.software.readers
Article #2931Trn 2.3 release problems
From: Wayne Davison
Date: Fri, 01 Jan 1993 19:56
Date: Fri, 01 Jan 1993 19:56
87 lines
2955 bytes
2955 bytes
A couple minor compilation problems have cropped up with the trn-2.3
release. I'll release something officially in a few days, but in the
meantime, here's a unified diff of the problem areas. Let me know if
there are any more problems.
.wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index:config.h.SH
@@ -142,4 +142,5 @@
#$memcpy bcopy(s,d,n) memcpy((char*)d,(char*)s,(int)n) /* Different */
#$memcpy bzero(d,n) memset((char*)d,0,(int)n) /* flavors. */
+#$memcpy bcmp(s,s2,n) memcmp((char*)s,(char*)s2,(int)n)
#$rename RENAME /* is rename() a system call? */
#$ftruncate FTRUNCATE /* is ftruncate() available? */
Index:hdbm.c
@@ -29,7 +29,6 @@
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "EXTERN.h"
+#include "common.h"
#include "hdbm.h"
#include "hdbmint.h"
@@ -149,5 +148,5 @@
hpkeydat = hp->he_key.dat_ptr;
if (hp->he_key.dat_len == keylen && hpkeydat[0] == keydat[0] &&
- memcmp(hpkeydat, keydat, keylen) == 0)
+ bcmp(hpkeydat, keydat, keylen) == 0)
break;
}
Index:mthreads.c
@@ -46,5 +46,5 @@
char buf[LBUFLEN+1];
-static char line[256];
+char line[256];
static char line2[256];
Index:nghash.c
@@ -28,6 +28,4 @@
#endif
#include "ngdata.h"
-
-#include <string.h>
#include "hdbm.h"
@@ -73,5 +71,5 @@
rewind(actfp);
for (activeitems = 0; fgets(buf, LBUFLEN, actfp) != NULL; activeitems++) {
- register char *p = strchr(buf, ' ');
+ register char *p = index(buf, ' ');
HDBMDATUM key, data;
@@ -120,5 +118,5 @@
return -1;
else {
- (void) memcpy(outbuf, data.dat_ptr, (int)data.dat_len);
+ (void) bcopy(data.dat_ptr, outbuf, (int)data.dat_len);
outbuf[data.dat_len] = '\0';
return data.dat_ptr - actfile;
Index:rthreads.c
@@ -62,5 +62,4 @@
if (size < 0) {
printf("\nYour NNTP server isn't XTHREAD-compliant.\n") FLUSH;
- use_threads = FALSE;
return;
}
Index:server.c
@@ -84,5 +84,5 @@
long
rawget_server(buf, n)
-void *buf;
+char *buf;
long n;
{
Index:sw.c
@@ -207,4 +207,7 @@
#endif
break;
+ case 'c':
+ checkflag = upordown;
+ break;
case 'C':
s++;
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Technical Details
Message-ID:
<C06y2s.9E4@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!munnari.oz.au!spool.mu.edu!umn.edu!csus.edu!borland.com!davisonReferences:
<C03FsC.9IJ@borland.com> <C03Fzn.9M0@borland.com>Show Full Headers
Complete Article Headers
Message-ID: <C06y2s.9E4@borland.com> Subject: Trn 2.3 release problems Date: Fri, 1 Jan 1993 19:56:52 GMT From: davison@borland.com (Wayne Davison) References: <C03FsC.9IJ@borland.com> <C03Fzn.9M0@borland.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!munnari.oz.au!spool.mu.edu!umn.edu!csus.edu!borland.com!davison Newsgroups: news.software.readers,news.software.b Organization: Borland International Lines: 87