[PATCH] Fix compiler warnings on test_list.c
Vincent CHAVANIS <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | TELEMAQUE |
| Message-ID | <[email protected]> |
Fix compiler warnings on test_list.c fa && fb should be defined as const. comments ? Vincent.
test_list_warnings.txt
(text/plain, 362 B)
--- /gateway-cvs/test/test_list.c 2010-10-07 16:26:09.971141724 +0200
+++ /gateway/test/test_list.c 2010-10-12 13:06:43.732612247 +0200
@@ -68,8 +68,8 @@
static int my_sort_cmp(const void *a, const void *b)
{
- Octstr *fa = a;
- Octstr *fb = b;
+ const Octstr *fa = a;
+ const Octstr *fb = b;
return octstr_compare(fa, fb);
}