git-svn: trunk@2291
Nigel Horne authored on 2006/09/20 01:52:09... | ... |
@@ -19,6 +19,9 @@ |
19 | 19 |
* MA 02110-1301, USA. |
20 | 20 |
* |
21 | 21 |
* $Log: phishcheck.c,v $ |
22 |
+ * Revision 1.8 2006/09/19 16:52:09 njh |
|
23 |
+ * Fixed inconsistency between phishcheck.c and phishcheck.h |
|
24 |
+ * |
|
22 | 25 |
* Revision 1.7 2006/09/18 17:10:07 njh |
23 | 26 |
* Fix compilation error on Solaris 10 |
24 | 27 |
* |
... | ... |
@@ -246,9 +249,9 @@ void url_check_init(struct url_check* urls) |
246 | 246 |
|
247 | 247 |
/* string reference counting implementation, |
248 | 248 |
* so that: we don't have to keep in mind who allocated what, and when needs to be freed, |
249 |
- * and thus we won't leek memory*/ |
|
249 |
+ * and thus we won't leak memory*/ |
|
250 | 250 |
|
251 |
-inline void string_free(struct string* str) |
|
251 |
+void string_free(struct string* str) |
|
252 | 252 |
{ |
253 | 253 |
for(;;){ |
254 | 254 |
str->refcount--; |
... | ... |
@@ -294,7 +297,7 @@ static inline void string_init_c(struct string* dest,char* data) |
294 | 294 |
} |
295 | 295 |
|
296 | 296 |
/* make a copy of the string between start -> end*/ |
297 |
-inline void string_assign_dup(struct string* dest,const char* start,const char* end) |
|
297 |
+void string_assign_dup(struct string* dest,const char* start,const char* end) |
|
298 | 298 |
{ |
299 | 299 |
char* ret = cli_malloc(end-start+1); |
300 | 300 |
strncpy(ret,start,end-start); |
... | ... |
@@ -324,7 +327,7 @@ void string_assign_ref(struct string* dest,struct string* ref,char* data) |
324 | 324 |
dest->ref=ref; |
325 | 325 |
} |
326 | 326 |
|
327 |
-inline void free_if_needed(struct url_check* url) |
|
327 |
+void free_if_needed(struct url_check* url) |
|
328 | 328 |
{ |
329 | 329 |
string_free(&url->realLink); |
330 | 330 |
string_free(&url->displayLink); |