(bzero, bcopy): Obsolete BSDisms; remove. Remove some calls without
effect. Replace calls by struct assignment where possible. Replace clear buffer, copy string to buffer by strncpy(). Use assignment to clear when that's clearer. Replace overlapping copy through bounce buffer by memmove(). Replace rest by standard memset() and memcpy(). Also use sizeof() instead of literal array sizes for robustness, and instead of symbolic array sizes for clarity.
This commit is contained in:
parent
2910da23ea
commit
4ae9c417b3
79 changed files with 172 additions and 256 deletions
|
@ -90,7 +90,7 @@ head(void)
|
|||
pr("::::::::::::::::::::::::::::::::::::::::::::::::::\n");
|
||||
pr(" %s", ctime(&now));
|
||||
pr("\n");
|
||||
bzero((s_char *)hist, sizeof(hist));
|
||||
memset(hist, 0, sizeof(hist));
|
||||
snxtitem_all(&nstr, EF_NEWS);
|
||||
maxcnum = 0;
|
||||
while (nxtitem(&nstr, (s_char *)&news)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue