mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 13:23:20 +08:00
Update to FreeBSD 9.2
This commit is contained in:
@@ -164,7 +164,8 @@ ipsec_dump_policy(policy, delimiter)
|
||||
return NULL;
|
||||
}
|
||||
buf = newbuf;
|
||||
snprintf(buf, buflen, "%s%s%s", buf, delimiter, isrbuf);
|
||||
snprintf(buf + strlen(buf), buflen - strlen(buf),
|
||||
"%s%s", delimiter, isrbuf);
|
||||
|
||||
off += xisr->sadb_x_ipsecrequest_len;
|
||||
}
|
||||
|
@@ -58,6 +58,7 @@ int yylex(void);
|
||||
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
%option noinput
|
||||
|
||||
/* common section */
|
||||
nl \n
|
||||
@@ -142,8 +143,8 @@ void
|
||||
__policy__strbuffer__init__(msg)
|
||||
char *msg;
|
||||
{
|
||||
if (yy_current_buffer)
|
||||
yy_delete_buffer(yy_current_buffer);
|
||||
if (YY_CURRENT_BUFFER)
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
strbuffer = (YY_BUFFER_STATE)yy_scan_string(msg);
|
||||
yy_switch_to_buffer(strbuffer);
|
||||
|
||||
|
Reference in New Issue
Block a user