mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
5aa13c00d6
PR: 19433 Submitted by: Andy Sparrow <andy@geek4food.org>
21 lines
672 B
Plaintext
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
|