From a3f6cf3c2943aab2aca14f36bbcd106c2d5cde4a Mon Sep 17 00:00:00 2001 From: borutr Date: Fri, 2 Jan 2009 22:01:12 +0000 Subject: [PATCH] fixed test if symbol was found in fndsym() git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5320 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- as/link/lklibr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/as/link/lklibr.c b/as/link/lklibr.c index c59becce..af0505a2 100644 --- a/as/link/lklibr.c +++ b/as/link/lklibr.c @@ -19,8 +19,6 @@ * Extensions: P. Felber */ -#define EQ(A,B) !strcmp((A),(B)) - #include #include #include @@ -50,6 +48,7 @@ * */ +#define EQ(A,B) !strcmp((A),(B)) #define NELEM(x) (sizeof (x) / sizeof (*x)) #ifdef INDEXLIB @@ -763,8 +762,8 @@ fndsym (const char *name) fclose (libfp); - if (!ret) - break; + if (ret) + return 1; } /* Ends good open of libr file */ return 0; -- 2.30.2