From 9004bc202e5ea7b8eabca183f4e6c6abe573f802 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 2 Jun 1996 19:47:36 +0000 Subject: Sun Jun 2 14:56:49 1996 Roland McGrath * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca. * sysdeps/generic/gnu/types.h (__clock_t): New type. * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define using kernel types. * time/time.h (clock_t): Include and define using __clock_t. --- login/pututline_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'login') diff --git a/login/pututline_r.c b/login/pututline_r.c index 824cf3a391..62fc83bd58 100644 --- a/login/pututline_r.c +++ b/login/pututline_r.c @@ -63,7 +63,7 @@ pututline_r (const struct utmp *id, struct utmp_data *utmp_data) if (utmp_data->ubuf.ut_type != id->ut_type) { /* We must not overwrite the data in UTMP_DATA. */ - struct utmp_data *data_tmp = alloca (sizeof (utmp_data)); + struct utmp_data *data_tmp = alloca (sizeof (*data_tmp)); struct utmp *dummy; *data_tmp = *utmp_data; -- cgit v1.2.3