mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:59:07 +08:00
Update to FreeBSD head 2017-04-04
Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 4. Neither the name of the University nor the names of its contributors
|
||||
* 3. Neither the name of the University nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
@@ -338,17 +338,13 @@ retry_nlist:
|
||||
namelist[X_SUM].n_name = "_cnt";
|
||||
goto retry_nlist;
|
||||
}
|
||||
for (c = 0;
|
||||
c < (int)(sizeof(namelist)/sizeof(namelist[0]));
|
||||
c++)
|
||||
for (c = 0; c < (int)(nitems(namelist)); c++)
|
||||
if (namelist[c].n_type == 0)
|
||||
bufsize += strlen(namelist[c].n_name) + 1;
|
||||
bufsize += len + 1;
|
||||
buf = bp = alloca(bufsize);
|
||||
|
||||
for (c = 0;
|
||||
c < (int)(sizeof(namelist)/sizeof(namelist[0]));
|
||||
c++)
|
||||
for (c = 0; c < (int)(nitems(namelist)); c++)
|
||||
if (namelist[c].n_type == 0) {
|
||||
xo_error(" %s",
|
||||
namelist[c].n_name);
|
||||
|
Reference in New Issue
Block a user