Wed Apr 16 15:10:18 2008 UTC ()
Don't use inline.


(joerg)
diff -r1.12 -r1.13 pkgsrc/net/libfetch/files/http.c

cvs diff -r1.12 -r1.13 pkgsrc/net/libfetch/files/http.c (expand / switch to unified diff)

--- pkgsrc/net/libfetch/files/http.c 2008/04/16 01:01:50 1.12
+++ pkgsrc/net/libfetch/files/http.c 2008/04/16 15:10:18 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: http.c,v 1.12 2008/04/16 01:01:50 joerg Exp $ */ 1/* $NetBSD: http.c,v 1.13 2008/04/16 15:10:18 joerg Exp $ */
2/*- 2/*-
3 * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav 3 * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer 10 * notice, this list of conditions and the following disclaimer
11 * in this position and unchanged. 11 * in this position and unchanged.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -155,27 +155,27 @@ http_new_chunk(struct httpio *io) @@ -155,27 +155,27 @@ http_new_chunk(struct httpio *io)
155 *p - '0'; 155 *p - '0';
156 } else { 156 } else {
157 io->chunksize = io->chunksize * 16 + 157 io->chunksize = io->chunksize * 16 +
158 10 + tolower((unsigned char)*p) - 'a'; 158 10 + tolower((unsigned char)*p) - 'a';
159 } 159 }
160 } 160 }
161 161
162 return (io->chunksize); 162 return (io->chunksize);
163} 163}
164 164
165/* 165/*
166 * Grow the input buffer to at least len bytes 166 * Grow the input buffer to at least len bytes
167 */ 167 */
168static inline int 168static int
169http_growbuf(struct httpio *io, size_t len) 169http_growbuf(struct httpio *io, size_t len)
170{ 170{
171 char *tmp; 171 char *tmp;
172 172
173 if (io->bufsize >= len) 173 if (io->bufsize >= len)
174 return (0); 174 return (0);
175 175
176 if ((tmp = realloc(io->buf, len)) == NULL) 176 if ((tmp = realloc(io->buf, len)) == NULL)
177 return (-1); 177 return (-1);
178 io->buf = tmp; 178 io->buf = tmp;
179 io->bufsize = len; 179 io->bufsize = len;
180 return (0); 180 return (0);
181} 181}