projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed test if symbol was found in fndsym()
[fw/sdcc]
/
as
/
link
/
lklibr.c
diff --git
a/as/link/lklibr.c
b/as/link/lklibr.c
index c59becceaf0c1d0eb4094e3b52772e99bd2a0766..af0505a29ab5c37a66cb5165aa3450b5e0ff136c 100644
(file)
--- a/
as/link/lklibr.c
+++ b/
as/link/lklibr.c
@@
-19,8
+19,6
@@
* Extensions: P. Felber
*/
* Extensions: P. Felber
*/
-#define EQ(A,B) !strcmp((A),(B))
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-50,6
+48,7
@@
*
*/
*
*/
+#define EQ(A,B) !strcmp((A),(B))
#define NELEM(x) (sizeof (x) / sizeof (*x))
#ifdef INDEXLIB
#define NELEM(x) (sizeof (x) / sizeof (*x))
#ifdef INDEXLIB
@@
-763,8
+762,8
@@
fndsym (const char *name)
fclose (libfp);
fclose (libfp);
- if (
!
ret)
-
break
;
+ if (ret)
+
return 1
;
} /* Ends good open of libr file */
return 0;
} /* Ends good open of libr file */
return 0;