Consistently return a value from non-void functions.

This commit is contained in:
joerg 2013-03-02 18:18:10 +00:00
parent 89f597d226
commit 933e591422
2 changed files with 20 additions and 3 deletions

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.2 2011/04/04 11:00:38 drochner Exp $
$NetBSD: distinfo,v 1.3 2013/03/02 18:18:10 joerg Exp $
SHA1 (ldapvi-1.7.tar.gz) = d1cde4cbb618180f9ae0e77c56a1520b8ad61c9a
RMD160 (ldapvi-1.7.tar.gz) = f4cd1c2fcfc87e7a9e912269e60280e9ecd82156
Size (ldapvi-1.7.tar.gz) = 119503 bytes
SHA1 (patch-aa) = 7f700c9296c724c8afd72d1cd7d8ca898018208a
SHA1 (patch-ab) = a04bc868aa44f1ac15359cb78858a0f604acb475
SHA1 (patch-ac) = 493397833801d99f5a7796b7b270e1734a44755a
SHA1 (patch-ac) = 52ea228b5ac8bdd2df6c90e7151bcfed13c77b0d

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ac,v 1.1 2011/04/04 11:00:39 drochner Exp $
$NetBSD: patch-ac,v 1.2 2013/03/02 18:18:10 joerg Exp $
--- ldapvi.c.orig 2007-05-05 10:17:26.000000000 +0000
+++ ldapvi.c
@ -11,3 +11,20 @@ $NetBSD: patch-ac,v 1.1 2011/04/04 11:00:39 drochner Exp $
}
static int
@@ -1465,7 +1465,7 @@ copy_sasl_output(FILE *out, char *sasl)
int line = 0;
int c;
- if (lstat(sasl, &st) == -1) return;
+ if (lstat(sasl, &st) == -1) return 0;
if ( !(in = fopen(sasl, "r"))) syserr();
if (st.st_size > 0) {
@@ -1499,6 +1499,7 @@ copy_sasl_output(FILE *out, char *sasl)
fputc(c, out);
}
}
+ return line;
}
static GArray *