threads / patch / 32063

patchgit-credential-gnome-keyring: Remove die

Subject: [PATCH] git-credential-gnome-keyring: Remove die

## tl;dr

One message between Nov 11, 2012 and Nov 11, 2012. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Matt Kraai· Nov 11, 2012, 00:08 UTC · lore

git-credential-gnome-keyring defines die, but it is unused and incorrect (it passes a va_list to error, which does not expect one), so remove it.

Signed-off-by: Matt Kraai <kraai@ftbfs.org>
---
 .../credential/gnome-keyring/git-credential-gnome-keyring.c  |   10 ----------
 1 file changed, 10 deletions(-)
Show changes to contrib/credential/gnome-keyring/git-credential-gnome-keyring.c +0 −10
diff --git a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
index 41f61c5..3eaafba 100644
--- a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
+++ b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
@@ -104,16 +104,6 @@ static inline void error(const char *fmt, ...)
 	va_end(ap);
 }
 
-static inline void die(const char *fmt, ...)
-{
-	va_list ap;
-
-	va_start(ap,fmt);
-	error(fmt, ap);
-	va_end(ap);
-	exit(EXIT_FAILURE);
-}
-
 static inline void die_errno(int err)
 {
 	error("%s", strerror(err));
-- 
1.7.10.4

← back to recent threads