bzero -> memset

This commit is contained in:
Todd C. Miller
1995-03-30 02:47:38 +00:00
parent 222d260765
commit e281c20f4e
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ char * tgetpass(prompt, timeout)
* mask out SIGINT, should probably just catch it. * mask out SIGINT, should probably just catch it.
*/ */
#ifdef POSIX_SIGNALS #ifdef POSIX_SIGNALS
(void) bzero((char *)(&mask), sizeof(mask)); (void) memset((VOID *)&mask, 0, sizeof(mask));
(void) sigaddset(&mask, SIGINT); (void) sigaddset(&mask, SIGINT);
(void) sigprocmask(SIG_BLOCK, &mask, &oldmask); (void) sigprocmask(SIG_BLOCK, &mask, &oldmask);
#else #else

View File

@@ -127,7 +127,7 @@ int main(argc, argv)
* Setup signal handlers * Setup signal handlers
*/ */
#ifdef POSIX_SIGNALS #ifdef POSIX_SIGNALS
(void) bzero((char *)(&action), sizeof(action)); (void) memset((VOID *)&action, 0, sizeof(action));
action.sa_handler = Exit; action.sa_handler = Exit;
action.sa_flags = SA_RESETHAND; action.sa_flags = SA_RESETHAND;
(void) sigaction(SIGILL, &action, NULL); (void) sigaction(SIGILL, &action, NULL);