$NetBSD: patch-ad,v 1.1 2005/10/07 17:15:40 joerg Exp $

--- dact.c.orig	2005-10-07 18:57:34.000000000 +0200
+++ dact.c
@@ -182,7 +182,7 @@ int dact_upgrade(const char *options, ui
 	strncat(dact_binfile,"dact.bin",sizeof(dact_binfile)-strlen(dact_binfile)-1);
 #endif
 	urlsubst=parse_url_subst("http://www.rkeene.org/projects/rget/rget.cgi?os=@@OSNM@@&arch=@@ARCH@@&project=dact&file=bin&meth=gz","");
-	if ((outFd=open_net(dact_binfile, O_WRONLY|O_TRUNC|O_CREAT, 0755))<0) { PERROR("open_net"); return(-1); }
+	if ((outFd=open_net(dact_binfile, O_WRONLY|O_TRUNC|O_CREAT, (int)0755))<0) { PERROR("open_net"); return(-1); }
 	if ((inFd=open_net(urlsubst, O_RDONLY))<0) { PERROR("open_net"); return(-1); }
 	if (!dact_process_file(inFd, outFd, DACT_MODE_DECMP, options, "dact", crcs,-1)) {
 		close(inFd);
@@ -1186,7 +1186,7 @@ int main(int argc, char **argv) {
 					continue;
 				}
 				if (!options[DACT_OPT_STDOUT]) {
-					if ((out_fd=open_net(out_file,O_WRONLY|O_CREAT|O_TRUNC,0644))==-1) {
+					if ((out_fd=open_net(out_file,O_WRONLY|O_CREAT|O_TRUNC,(int)0644))==-1) {
 						fprintf(stderr, "dact: Can't open %s for writing.\n",out_file);
 						PERROR("open");
 						continue;
