diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2014-01-27 21:56:04 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2014-01-27 21:56:04 +0000 |
commit | 2f72c77e780f69c8eac52515c1b59f8bbb7bc1c0 (patch) | |
tree | 50ece0a14ee591d13441a9f51efb087e614f68c3 /textproc/glimpse/files/patch-main.c | |
parent | 7dad680ae36ee01774ada6ad02f4dc2935f32448 (diff) | |
download | ports-2f72c77e780f69c8eac52515c1b59f8bbb7bc1c0.tar.gz ports-2f72c77e780f69c8eac52515c1b59f8bbb7bc1c0.zip |
Notes
Diffstat (limited to 'textproc/glimpse/files/patch-main.c')
-rw-r--r-- | textproc/glimpse/files/patch-main.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/glimpse/files/patch-main.c b/textproc/glimpse/files/patch-main.c new file mode 100644 index 000000000000..4acec450d26c --- /dev/null +++ b/textproc/glimpse/files/patch-main.c @@ -0,0 +1,20 @@ +--- ./main.c.orig 2000-08-15 22:07:25.000000000 +0000 ++++ ./main.c 2014-01-27 21:40:18.000000000 +0000 +@@ -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 |