[Pkg-shadow-commits] r3158 - upstream/trunk/lib

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Thu Mar 18 18:58:58 UTC 2010


Author: nekral-guest
Date: 2010-03-18 18:58:52 +0000 (Thu, 18 Mar 2010)
New Revision: 3158

Modified:
   upstream/trunk/lib/tcbfuncs.c
Log:
Reverse comparison for consistency.


Modified: upstream/trunk/lib/tcbfuncs.c
===================================================================
--- upstream/trunk/lib/tcbfuncs.c	2010-03-18 18:57:03 UTC (rev 3157)
+++ upstream/trunk/lib/tcbfuncs.c	2010-03-18 18:58:52 UTC (rev 3158)
@@ -139,7 +139,7 @@
 		return NULL;
 	}
 	ret = readlink (path, link, sizeof (link) - 1);
-	if (ret == -1) {
+	if (-1 == ret) {
 		fprintf (stderr,
 		         _("%s: Cannot read symbolic link %s: %s\n"),
 		         Prog, path, strerror (errno));




More information about the Pkg-shadow-commits mailing list