Imported Upstream version 2.6.1p2
[debian/amanda] / gnulib / regenerate / no-restrict.patch
1 Index: gnulib/inet_ntop.c
2 ===================================================================
3 --- gnulib/inet_ntop.c  (revision 10693)
4 +++ gnulib/inet_ntop.c  (working copy)
5 @@ -70,8 +70,8 @@
6   *     Paul Vixie, 1996.
7   */
8  const char *
9 -inet_ntop (int af, const void *restrict src,
10 -          char *restrict dst, socklen_t cnt)
11 +inet_ntop (int af, const void *src,
12 +          char *dst, socklen_t cnt)
13  {
14    switch (af)
15      {
16 Index: gnulib/inet_ntop.h
17 ===================================================================
18 --- gnulib/inet_ntop.h  (revision 10693)
19 +++ gnulib/inet_ntop.h  (working copy)
20 @@ -37,6 +37,6 @@
21     <http://www.opengroup.org/susv3xsh/inet_ntop.html>.  */
22  
23  #if !HAVE_DECL_INET_NTOP
24 -extern const char *inet_ntop (int af, const void *restrict src,
25 -                             char *restrict dst, socklen_t cnt);
26 +extern const char *inet_ntop (int af, const void *src,
27 +                             char *dst, socklen_t cnt);
28  #endif
29 Index: gnulib/string.in.h
30 ===================================================================
31 --- gnulib/string.in.h  (revision 10693)
32 +++ gnulib/string.in.h  (working copy)
33 @@ -68,7 +68,7 @@
34     last written byte.  */
35  #if @GNULIB_MEMPCPY@
36  # if ! @HAVE_MEMPCPY@
37 -extern void *mempcpy (void *restrict __dest, void const *restrict __src,
38 +extern void *mempcpy (void *__dest, void const *__src,
39                       size_t __n);
40  # endif
41  #elif defined GNULIB_POSIXCHECK
42 @@ -96,7 +96,7 @@
43  /* Copy SRC to DST, returning the address of the terminating '\0' in DST.  */
44  #if @GNULIB_STPCPY@
45  # if ! @HAVE_STPCPY@
46 -extern char *stpcpy (char *restrict __dst, char const *restrict __src);
47 +extern char *stpcpy (char *__dst, char const *__src);
48  # endif
49  #elif defined GNULIB_POSIXCHECK
50  # undef stpcpy
51 @@ -111,7 +111,7 @@
52  #if @GNULIB_STPNCPY@
53  # if ! @HAVE_STPNCPY@
54  #  define stpncpy gnu_stpncpy
55 -extern char *stpncpy (char *restrict __dst, char const *restrict __src,
56 +extern char *stpncpy (char *__dst, char const *__src,
57                       size_t __n);
58  # endif
59  #elif defined GNULIB_POSIXCHECK
60 @@ -272,7 +272,7 @@
61     See also strtok_r().  */
62  #if @GNULIB_STRSEP@
63  # if ! @HAVE_STRSEP@
64 -extern char *strsep (char **restrict __stringp, char const *restrict __delim);
65 +extern char *strsep (char **__stringp, char const *__delim);
66  # endif
67  # if defined GNULIB_POSIXCHECK
68  #  undef strsep
69 @@ -359,8 +359,8 @@
70     See also strsep().  */
71  #if @GNULIB_STRTOK_R@
72  # if ! @HAVE_DECL_STRTOK_R@
73 -extern char *strtok_r (char *restrict s, char const *restrict delim,
74 -                      char **restrict save_ptr);
75 +extern char *strtok_r (char *s, char const *delim,
76 +                      char **save_ptr);
77  # endif
78  # if defined GNULIB_POSIXCHECK
79  #  undef strtok_r
80 Index: gnulib/gettimeofday.c
81 ===================================================================
82 --- gnulib/gettimeofday.c       (revision 10693)
83 +++ gnulib/gettimeofday.c       (working copy)
84 @@ -98,7 +98,7 @@
85     causes problems.  */
86  
87  int
88 -rpl_gettimeofday (struct timeval *restrict tv, void *restrict tz)
89 +rpl_gettimeofday (struct timeval *tv, void *tz)
90  {
91  #undef gettimeofday
92  #if HAVE_GETTIMEOFDAY
93 Index: gnulib/sys_time.in.h
94 ===================================================================
95 --- gnulib/sys_time.in.h        (revision 10693)
96 +++ gnulib/sys_time.in.h        (working copy)
97 @@ -46,7 +46,7 @@
98  # if @REPLACE_GETTIMEOFDAY@
99  #  undef gettimeofday
100  #  define gettimeofday rpl_gettimeofday
101 -int gettimeofday (struct timeval *restrict, void *restrict);
102 +int gettimeofday (struct timeval *, void *);
103  # endif
104  
105  #endif /* _GL_SYS_TIME_H */
106 Index: gnulib/base64.c
107 ===================================================================
108 --- gnulib/base64.c     (revision 10693)
109 +++ gnulib/base64.c     (working copy)
110 @@ -64,8 +64,8 @@
111     possible.  If OUTLEN is larger than BASE64_LENGTH(INLEN), also zero
112     terminate the output buffer. */
113  void
114 -base64_encode (const char *restrict in, size_t inlen,
115 -              char *restrict out, size_t outlen)
116 +base64_encode (const char *in, size_t inlen,
117 +              char *out, size_t outlen)
118  {
119    static const char b64str[64] =
120      "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
121 @@ -310,8 +310,8 @@
122     that, when applicable, you must remove any line terminators that is
123     part of the data stream before calling this function.  */
124  bool
125 -base64_decode (const char *restrict in, size_t inlen,
126 -              char *restrict out, size_t *outlen)
127 +base64_decode (const char *in, size_t inlen,
128 +              char *out, size_t *outlen)
129  {
130    size_t outleft = *outlen;
131  
132 Index: gnulib/getaddrinfo.c
133 ===================================================================
134 --- gnulib/getaddrinfo.c        (revision 10693)
135 +++ gnulib/getaddrinfo.c        (working copy)
136 @@ -123,10 +123,10 @@
137  /* Translate name of a service location and/or a service name to set of
138     socket addresses. */
139  int
140 -getaddrinfo (const char *restrict nodename,
141 -            const char *restrict servname,
142 -            const struct addrinfo *restrict hints,
143 -            struct addrinfo **restrict res)
144 +getaddrinfo (const char *nodename,
145 +            const char *servname,
146 +            const struct addrinfo *hints,
147 +            struct addrinfo **res)
148  {
149    struct addrinfo *tmp;
150    int port = 0;
151 @@ -337,9 +337,9 @@
152      }
153  }
154  
155 -int getnameinfo(const struct sockaddr *restrict sa, socklen_t salen,
156 -               char *restrict node, socklen_t nodelen,
157 -               char *restrict service, socklen_t servicelen,
158 +int getnameinfo(const struct sockaddr *sa, socklen_t salen,
159 +               char *node, socklen_t nodelen,
160 +               char *service, socklen_t servicelen,
161                 int flags)
162  {
163  #ifdef WIN32_NATIVE
164 Index: gnulib/base64.h
165 ===================================================================
166 --- gnulib/base64.h     (revision 10693)
167 +++ gnulib/base64.h     (working copy)
168 @@ -31,13 +31,13 @@
169  
170  extern bool isbase64 (char ch);
171  
172 -extern void base64_encode (const char *restrict in, size_t inlen,
173 -                          char *restrict out, size_t outlen);
174 +extern void base64_encode (const char *in, size_t inlen,
175 +                          char *out, size_t outlen);
176  
177  extern size_t base64_encode_alloc (const char *in, size_t inlen, char **out);
178  
179 -extern bool base64_decode (const char *restrict in, size_t inlen,
180 -                          char *restrict out, size_t *outlen);
181 +extern bool base64_decode (const char *in, size_t inlen,
182 +                          char *out, size_t *outlen);
183  
184  extern bool base64_decode_alloc (const char *in, size_t inlen,
185                                  char **out, size_t *outlen);
186 Index: gnulib/getaddrinfo.h
187 ===================================================================
188 --- gnulib/getaddrinfo.h        (revision 10693)
189 +++ gnulib/getaddrinfo.h        (working copy)
190 @@ -113,10 +113,10 @@
191     socket addresses.
192     For more details, see the POSIX:2001 specification
193     <http://www.opengroup.org/susv3xsh/getaddrinfo.html>.  */
194 -extern int getaddrinfo (const char *restrict nodename,
195 -                       const char *restrict servname,
196 -                       const struct addrinfo *restrict hints,
197 -                       struct addrinfo **restrict res);
198 +extern int getaddrinfo (const char *nodename,
199 +                       const char *servname,
200 +                       const struct addrinfo *hints,
201 +                       struct addrinfo **res);
202  #endif
203  
204  #if !HAVE_DECL_FREEADDRINFO
205 @@ -137,9 +137,9 @@
206  /* Convert socket address to printable node and service names.
207     For more details, see the POSIX:2001 specification
208     <http://www.opengroup.org/susv3xsh/getnameinfo.html>.  */
209 -extern int getnameinfo(const struct sockaddr *restrict sa, socklen_t salen,
210 -                      char *restrict node, socklen_t nodelen,
211 -                      char *restrict service, socklen_t servicelen,
212 +extern int getnameinfo(const struct sockaddr *sa, socklen_t salen,
213 +                      char *node, socklen_t nodelen,
214 +                      char *service, socklen_t servicelen,
215                        int flags);
216  
217  #endif