diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-01-14 18:41:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-01-14 18:41:22 +0000 |
commit | b2637a22dbfe8a4c790f378d339e12d78fd3f43f (patch) | |
tree | dd8b5e075e7be42a79d6e3e9a6f2f3cf857244f3 /libio/wstrops.c | |
parent | 630d93a7aee1869f0c0dd337876c1be5e523bd87 (diff) | |
download | glibc-b2637a22dbfe8a4c790f378d339e12d78fd3f43f.zip glibc-b2637a22dbfe8a4c790f378d339e12d78fd3f43f.tar.gz glibc-b2637a22dbfe8a4c790f378d339e12d78fd3f43f.tar.bz2 |
Update.
2004-01-14 Ulrich Drepper <drepper@redhat.com>
* 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.
Diffstat (limited to 'libio/wstrops.c')
-rw-r--r-- | libio/wstrops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/wstrops.c b/libio/wstrops.c index b180a8f..32f7ef3 100644 --- a/libio/wstrops.c +++ b/libio/wstrops.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1997-1999,2001-2003 Free Software Foundation, Inc. +/* Copyright (C) 1993,1997-1999,2001-2003,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -71,7 +71,7 @@ _IO_wstr_init_static (fp, ptr, size, pstart) wchar_t *pstart; { wchar_t *end; - + if (size == 0) end = ptr + __wcslen (ptr); else if ((_IO_size_t) ptr + size * sizeof (wchar_t) > (_IO_size_t) ptr) @@ -290,7 +290,7 @@ _IO_wstr_finish (fp, dummy) INTUSE(_IO_wdefault_finish) (fp, 0); } -struct _IO_jump_t _IO_wstr_jumps = +const struct _IO_jump_t _IO_wstr_jumps = { JUMP_INIT_DUMMY, JUMP_INIT(finish, _IO_wstr_finish), |