« Return to Thread: [patch 00/13] [RFC] Hashtable improvements and API changes

[patch 07/13] Fix gcc warning in tests/support.c

by Daniel Gollub :: Rate this Message:

Reply to Author | View in Thread

Index: opensync/tests/support.c
===================================================================
--- opensync.orig/tests/support.c
+++ opensync/tests/support.c
@@ -37,7 +37,7 @@ void check_env(void) {
  "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n");
 }
 
-char *setup_testbed(char *fkt_name)
+char *setup_testbed(const char *fkt_name)
 {
 
  setuid(65534);
Index: opensync/tests/support.h
===================================================================
--- opensync.orig/tests/support.h
+++ opensync/tests/support.h
@@ -48,7 +48,7 @@ int num_mapping_conflicts;
 
 void check_env(void);
 
-char *setup_testbed(char *fkt_name);
+char *setup_testbed(const char *fkt_name);
 void destroy_testbed(char *path);
 // create_case() with timeout of 30seconds (default)
 void create_case(Suite *s, const char *name, TFun function);


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

 « Return to Thread: [patch 00/13] [RFC] Hashtable improvements and API changes

LightInTheBox - Buy quality products at wholesale price