public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] cygdrop: fix return type of usageCore
@ 2021-05-25 23:36 Jeremy Drake
  2021-05-26  9:06 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Drake @ 2021-05-25 23:36 UTC (permalink / raw)
  To: cygwin-patches

[-- Attachment #1: Type: text/plain, Size: 104 bytes --]

Fixes a warning "no return statement in function returning non-void",
and solves a crash running --help.

[-- Attachment #2: Type: text/plain, Size: 833 bytes --]

From f4821db24d4e4feca16e4aea58843128e233ef4e Mon Sep 17 00:00:00 2001
From: Jeremy Drake <cygwin@jdrake.com>
Date: Tue, 25 May 2021 16:13:17 -0700
Subject: [PATCH] cygdrop: fix return type of usageCore

Fixes a warning "no return statement in function returning non-void",
and solves a crash running --help.
---
 src/cygdrop/cygdrop.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cygdrop/cygdrop.cc b/src/cygdrop/cygdrop.cc
index 35bcc19..dc403c9 100644
--- a/src/cygdrop/cygdrop.cc
+++ b/src/cygdrop/cygdrop.cc
@@ -39,7 +39,7 @@ static void help (FILE * f, const char *name);
 static void version (FILE * f, const char *name);
 static void license (FILE * f, const char *name);
 
-static int
+static void
 usageCore (FILE * f, const char * name)
 {
   fprintf (f,
-- 
2.31.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] cygdrop: fix return type of usageCore
  2021-05-25 23:36 [PATCH] cygdrop: fix return type of usageCore Jeremy Drake
@ 2021-05-26  9:06 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2021-05-26  9:06 UTC (permalink / raw)
  To: cygwin-patches

On May 25 16:36, Jeremy Drake via Cygwin-patches wrote:
> Fixes a warning "no return statement in function returning non-void",
> and solves a crash running --help.

Patches not affecting the Cygwin repo but other package's repos
should really go to cygwin-apps, please.


Thanks,
Corinna

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-26  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 23:36 [PATCH] cygdrop: fix return type of usageCore Jeremy Drake
2021-05-26  9:06 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).