mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 23:09:39 +08:00
NSDISPATCH(3): Fix for small-data area
This commit is contained in:
parent
a531ba43ea
commit
e33fe4acda
@ -157,9 +157,9 @@ _nsaddsrctomap(elem)
|
|||||||
{
|
{
|
||||||
int i, lineno;
|
int i, lineno;
|
||||||
extern int _nsyylineno;
|
extern int _nsyylineno;
|
||||||
extern char * _nsyytext;
|
extern char _nsyytext[];
|
||||||
|
|
||||||
lineno = _nsyylineno - (*_nsyytext == '\n' ? 1 : 0);
|
lineno = _nsyylineno - (_nsyytext[0] == '\n' ? 1 : 0);
|
||||||
if (curdbt.srclistsize > 0) {
|
if (curdbt.srclistsize > 0) {
|
||||||
if (((strcasecmp(elem, NSSRC_COMPAT) == 0) &&
|
if (((strcasecmp(elem, NSSRC_COMPAT) == 0) &&
|
||||||
(strcasecmp(curdbt.srclist[0].name, NSSRC_CACHE) != 0)) ||
|
(strcasecmp(curdbt.srclist[0].name, NSSRC_CACHE) != 0)) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user