[rtems-libbsd commit] NSDISPATCH(3): Fix for small-data area
Sebastian Huber
sebh at rtems.org
Wed Dec 4 12:37:35 UTC 2013
Module: rtems-libbsd
Branch: master
Commit: e33fe4acda3969f991a02dd1b37cc349ad7dd3c6
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e33fe4acda3969f991a02dd1b37cc349ad7dd3c6
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 15 15:14:20 2013 +0100
NSDISPATCH(3): Fix for small-data area
---
freebsd/lib/libc/net/nsparser.y | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/freebsd/lib/libc/net/nsparser.y b/freebsd/lib/libc/net/nsparser.y
index 2e57cd2..8f1d162 100644
--- a/freebsd/lib/libc/net/nsparser.y
+++ b/freebsd/lib/libc/net/nsparser.y
@@ -157,9 +157,9 @@ _nsaddsrctomap(elem)
{
int i, lineno;
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 (((strcasecmp(elem, NSSRC_COMPAT) == 0) &&
(strcasecmp(curdbt.srclist[0].name, NSSRC_CACHE) != 0)) ||
More information about the vc
mailing list