1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/textproc/glimpse/files/patch-ac
Thomas Gellekum 5aa13c00d6 Better return value for interaction with tkman.
PR:		19433
Submitted by:	Andy Sparrow <andy@geek4food.org>
2000-06-26 12:34:10 +00:00

21 lines
672 B
Plaintext

--- main.c.orig Fri Jul 9 17:40:18 1999
+++ main.c Fri Jun 23 15:44:32 2000
@@ -938,7 +938,7 @@
case 'V' :
printf("\nThis is glimpse version %s, %s.\n\n", GLIMPSE_VERSION, GLIMPSE_DATE);
- RETURNMAIN(0);
+ RETURNMAIN(1);
default :
if (isdigit(c)) quitwhile = ON;
@@ -1063,7 +1063,7 @@
clargc = 0;
clargv = NULL;
cli_len = sizeof(cli_addr);
- if ((newsockfd = accept(sockfd, &cli_addr, &cli_len)) < 0) continue;
+ if ((newsockfd = accept(sockfd, (struct sockaddr *)&cli_addr, &cli_len)) < 0) continue;
if (getreq(newsockfd, glimpse_reqbuf, &clstdin, &clstdout, &clstderr, &clargc, &clargv, &clpid) < 0) {
ret = -1;
#if DEBUG