From b2637a22dbfe8a4c790f378d339e12d78fd3f43f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 14 Jan 2004 18:41:22 +0000 Subject: Update. 2004-01-14 Ulrich Drepper * libio/libio.h: Add const to function tables types. * libio/libioP.h: Likewise. * /login/utmp-private.h: Likewise. * libio/fileops.c: Add const to jump table variable definition. * libio/genops.c: Likewise. * libio/iofopncook.c: Likewise. * libio/iopopen.c: Likewise. * libio/memstream.c: Likewise. * libio/obprintf.c: Likewise. * libio/oldfileops.c: Likewise. * libio/oldiopopen.c: Likewise. * libio/strops.c: Likewise. * libio/vsnprintf.c: Likewise. * libio/vswprintf.c: Likewise. * libio/wfileops.c: Likewise. * libio/wstrops.c: Likewise. * login/getutent_r.c: Likewise. * login/getutid_r.c Likewise. * login/getutline_r.c: Likewise. * sysdeps/generic/utmp_file.c: Likewise. --- login/getutent_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'login/getutent_r.c') diff --git a/login/getutent_r.c b/login/getutent_r.c index e96945e92c..76cb4cfc88 100644 --- a/login/getutent_r.c +++ b/login/getutent_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996,1997,1998,2000,2001, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1996-1998,2000,2001,2002,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper and Paul Janzen , 1996. @@ -36,7 +36,7 @@ static struct utmp *pututline_unknown (const struct utmp *data); static void endutent_unknown (void); /* Initial Jump table. */ -struct utfuncs __libc_utmp_unknown_functions = +const struct utfuncs __libc_utmp_unknown_functions = { setutent_unknown, getutent_r_unknown, @@ -48,7 +48,7 @@ struct utfuncs __libc_utmp_unknown_functions = }; /* Currently selected backend. */ -struct utfuncs *__libc_utmp_jump_table = &__libc_utmp_unknown_functions; +const struct utfuncs *__libc_utmp_jump_table = &__libc_utmp_unknown_functions; /* We need to protect the opening of the file. */ __libc_lock_define_initialized (, __libc_utmp_lock attribute_hidden) -- cgit v1.2.3