Module Name: xsrc
Committed By: joerg
Date: Sun Aug 21 14:48:12 UTC 2011
Modified Files:
xsrc/xfree/xc/extras/freetype2/src/lzw: zopen.c
Log Message:
Don't assign errno here.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/xfree/xc/extras/freetype2/src/lzw/zopen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/xfree/xc/extras/freetype2/src/lzw/zopen.c
diff -u xsrc/xfree/xc/extras/freetype2/src/lzw/zopen.c:1.2 xsrc/xfree/xc/extras/freetype2/src/lzw/zopen.c:1.3
--- xsrc/xfree/xc/extras/freetype2/src/lzw/zopen.c:1.2 Tue Aug 16 18:17:19 2011
+++ xsrc/xfree/xc/extras/freetype2/src/lzw/zopen.c Sun Aug 21 14:48:12 2011
@@ -1,5 +1,5 @@
/* $XFree86: xc/extras/freetype2/src/lzw/zopen.c,v 1.2 2004/12/16 22:15:48 tsi Exp $ */
-/* $NetBSD: zopen.c,v 1.2 2011/08/16 18:17:19 joerg Exp $ */
+/* $NetBSD: zopen.c,v 1.3 2011/08/21 14:48:12 joerg Exp $ */
/*-
* Copyright (c) 1985, 1986, 1992, 1993
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)zopen.c 8.1 (Berkeley) 6/27/93";
#else
-static char rcsid[] = "$NetBSD: zopen.c,v 1.2 2011/08/16 18:17:19 joerg Exp $";
+static char rcsid[] = "$NetBSD: zopen.c,v 1.3 2011/08/21 14:48:12 joerg Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -242,7 +242,6 @@
if (code >= free_ent) {
if (code > free_ent || oldcode == -1) {
/* Bad stream. */
- errno = EINVAL;
return (-1);
}
*stackp++ = finchar;