summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/fakeauth.c2
-rw-r--r--utils/frobauth.c2
-rw-r--r--utils/login.c4
-rw-r--r--utils/x.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/utils/fakeauth.c b/utils/fakeauth.c
index 590a421a..ba6a3eef 100644
--- a/utils/fakeauth.c
+++ b/utils/fakeauth.c
@@ -50,7 +50,7 @@ create_authhandle (struct authhandle **new)
error_t err = ports_create_port (authhandle_portclass, auth_bucket,
sizeof **new, new);
if (! err)
- bzero (&(*new)->euids, (void *) &(*new)[1] - (void *) &(*new)->euids);
+ memset (&(*new)->euids, 0, (void *)&(*new)[1] - (void *)&(*new)->euids);
return err;
}
diff --git a/utils/frobauth.c b/utils/frobauth.c
index 44690d82..5de77209 100644
--- a/utils/frobauth.c
+++ b/utils/frobauth.c
@@ -123,7 +123,7 @@ common_parse_opt (int key, char *arg, struct argp_state *state)
break;
case ARGP_KEY_INIT:
- bzero (fs, sizeof *fs);
+ memset (fs, 0, sizeof *fs);
fs->frobauth = frobauth;
fs->pids_argp_params.pids = &frobauth->pids;
fs->pids_argp_params.num_pids = &frobauth->num_pids;
diff --git a/utils/login.c b/utils/login.c
index a3e05636..9ee296aa 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -158,7 +158,7 @@ add_utmp_entry (char *args, unsigned args_len, int inherit_host)
char const *host = 0;
long addr = 0;
- bzero (&utmp, sizeof (utmp));
+ memset (&utmp, 0, sizeof(utmp));
gettimeofday (&utmp.ut_tv, 0);
strncpy (utmp.ut_name, envz_get (args, args_len, "USER") ?: "",
@@ -683,7 +683,7 @@ main(int argc, char *argv[])
proc_setowner (proc_server, 0, 1); /* Clear the owner. */
/* Now start constructing the exec arguments. */
- bzero (ints, sizeof (*ints) * INIT_INT_MAX);
+ memset (ints, 0, sizeof (*ints) * INIT_INT_MAX);
arg = envz_get (args, args_len, "UMASK");
ints[INIT_UMASK] = arg && *arg ? strtoul (arg, 0, 8) : umask (0);
diff --git a/utils/x.c b/utils/x.c
index 7bbc8ac5..518f3847 100644
--- a/utils/x.c
+++ b/utils/x.c
@@ -228,8 +228,8 @@ main(int argc, char *argv[])
}
struct argp argp = {options, parse_opt, args_doc, doc};
- bzero (add, sizeof add);
- bzero (remove, sizeof remove);
+ memset (add, 0, sizeof add);
+ memset (remove, 0, sizeof remove);
err =