Remove warnings under Darwin

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1008 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Fabien Thomas 2006-04-25 07:28:20 +00:00
parent 61922deab5
commit f9ce4bea58
6 changed files with 10 additions and 10 deletions

View File

@ -1573,7 +1573,7 @@ void csi_unit_set_callback (struct amf_unit *unit, struct amf_si *si)
struct list_head *csilist;
struct list_head *typenamelist;
struct amf_csi *csi;
struct amf_pg *pg;
struct amf_pg *pg = NULL;
struct amf_comp *comp;
struct amf_comp_csi_type_name *type_name;

View File

@ -256,7 +256,7 @@ extern int openais_amf_config_read (char **error_string)
struct amf_healthcheck *amf_healthcheck = 0;
struct amf_comp_csi_type_name *csi_type_name = 0;
struct amf_csi *amf_csi = 0;
struct amf_csi_name_value *csi_name_value;
struct amf_csi_name_value *csi_name_value = NULL;
fp = fopen (OPENAIS_CONFDIR "/groups.conf", "r");

View File

@ -79,7 +79,7 @@
#define SERVER_BACKLOG 5
static unsigned char *release_name = "Wilson version 0.74";
static char *release_name = "Wilson version 0.74";
static int ais_uid = 0;

View File

@ -161,7 +161,7 @@ static void _log_printf (char *file, int line, int priority,
gettimeofday (&tv, NULL);
strftime (char_time, sizeof (char_time), "%b %e %k:%M:%S",
localtime (&tv.tv_sec));
i = sprintf (newstring, "%s.%06ld ", char_time, tv.tv_usec);
i = sprintf (newstring, "%s.%06ld ", char_time, (long)tv.tv_usec);
}
if ((level == LOG_LEVEL_DEBUG) || (logmode & LOG_MODE_FILELINE)) {

View File

@ -100,10 +100,10 @@ static int pathlist_select (struct dirent *dirent)
static inline struct lcr_component_instance *lcr_comp_find (
char *iface_name,
unsigned int version,
int *iface_number)
unsigned int *iface_number)
{
struct lcr_component_instance *instance;
void *instance_p;
void *instance_p = NULL;
unsigned int component_handle = 0;
int i;
@ -134,7 +134,7 @@ static inline int lcr_lib_loaded (
char *library_name)
{
struct lcr_component_instance *instance;
void *instance_p;
void *instance_p = NULL;
unsigned int component_handle = 0;
/*
@ -156,7 +156,7 @@ static inline int lcr_lib_loaded (
return (0);
}
unsigned char *path_list[128];
char *path_list[128];
unsigned int path_list_entries = 0;
static void defaults_path_build (void)
@ -327,7 +327,7 @@ int lcr_ifact_reference (
{
struct lcr_iface_instance *iface_instance;
struct lcr_component_instance *instance;
int iface_number;
unsigned int iface_number;
unsigned int res;
unsigned int i;

View File

@ -129,7 +129,7 @@ void ComponentTerminateCallback (
#define TRS "%s"
#define TR(format,x) do { \
struct timeval t;\
gettimeofday(&t,NULL); \
gettimeofday(&t,NULL); \
printf("%s:%d: %s : %d : %u: %u :%s : " format "\n",\
__FILE__,__LINE__,__FUNCTION__, \
getpid(),(int)t.tv_sec, (int)t.tv_usec,#x,x); \