r19055 - gnucash/trunk/src/backend/xml - Remove redundant test for ENOSYS

Geert Janssens gjanssens at code.gnucash.org
Fri Apr 23 10:27:26 EDT 2010


Author: gjanssens
Date: 2010-04-23 10:27:26 -0400 (Fri, 23 Apr 2010)
New Revision: 19055
Trac: http://svn.gnucash.org/trac/changeset/19055

Modified:
   gnucash/trunk/src/backend/xml/gnc-backend-xml.c
Log:
Remove redundant test for ENOSYS
The error code was checked twice against ENOSYS, once in all situations, and once if ENOSYS is defined. This makes no sense. Since we never had bug reports for compilation errors on ENOSYS undefined, we can assume ENOSYS is always defined.

Modified: gnucash/trunk/src/backend/xml/gnc-backend-xml.c
===================================================================
--- gnucash/trunk/src/backend/xml/gnc-backend-xml.c	2010-04-23 13:01:15 UTC (rev 19054)
+++ gnucash/trunk/src/backend/xml/gnc-backend-xml.c	2010-04-23 14:27:26 UTC (rev 19055)
@@ -169,9 +169,6 @@
 # ifdef ENOTSUP
                 || errno == ENOTSUP
 # endif
-# ifdef ENOSYS
-                || errno == ENOSYS
-# endif
            )
         {
             be->linkfile = NULL;



More information about the gnucash-changes mailing list