From a784e502472fb3a1afa4d01a47c66b52d23e00f6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 7 Jan 2012 23:57:22 -0500 Subject: Remove pre-ISO C support No more __const. --- shadow/shadow.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'shadow') diff --git a/shadow/shadow.h b/shadow/shadow.h index 778df52b9a..abbeefc0b6 100644 --- a/shadow/shadow.h +++ b/shadow/shadow.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998, 1999, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1996-1999, 2003, 2012 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 @@ -84,7 +84,7 @@ extern struct spwd *getspent (void); cancellation point. But due to similarity with an POSIX interface or due to the implementation it is a cancellation point and therefore not marked with __THROW. */ -extern struct spwd *getspnam (__const char *__name); +extern struct spwd *getspnam (const char *__name); /* Read shadow entry from STRING. @@ -92,7 +92,7 @@ extern struct spwd *getspnam (__const char *__name); cancellation point. But due to similarity with an POSIX interface or due to the implementation it is a cancellation point and therefore not marked with __THROW. */ -extern struct spwd *sgetspent (__const char *__string); +extern struct spwd *sgetspent (const char *__string); /* Read next shadow entry from STREAM. @@ -108,7 +108,7 @@ extern struct spwd *fgetspent (FILE *__stream); cancellation point. But due to similarity with an POSIX interface or due to the implementation it is a cancellation point and therefore not marked with __THROW. */ -extern int putspent (__const struct spwd *__p, FILE *__stream); +extern int putspent (const struct spwd *__p, FILE *__stream); #ifdef __USE_MISC @@ -121,11 +121,11 @@ extern int putspent (__const struct spwd *__p, FILE *__stream); extern int getspent_r (struct spwd *__result_buf, char *__buffer, size_t __buflen, struct spwd **__result); -extern int getspnam_r (__const char *__name, struct spwd *__result_buf, +extern int getspnam_r (const char *__name, struct spwd *__result_buf, char *__buffer, size_t __buflen, struct spwd **__result); -extern int sgetspent_r (__const char *__string, struct spwd *__result_buf, +extern int sgetspent_r (const char *__string, struct spwd *__result_buf, char *__buffer, size_t __buflen, struct spwd **__result); -- cgit v1.2.3