Author: jonathan
Date: 2006-02-07 11:31:42 -0500 (Tue, 07 Feb 2006)
New Revision: 282
Modified:
trunk/examples/fl_user.c
trunk/libspread/fl.c
trunk/libspread/fl_p.h
Log:
ifdef out debugging code to avoid compile warning.
Modified: trunk/examples/fl_user.c
===================================================================
--- trunk/examples/fl_user.c 2006-01-17 23:49:00 UTC (rev 281)
+++ trunk/examples/fl_user.c 2006-02-07 16:31:42 UTC (rev 282)
@@ -398,7 +398,7 @@
{
sprintf( User, "user" );
- sprintf( Spread_name, "3333@localhost");
+ sprintf( Spread_name, "4803@localhost");
while( --argc > 0 )
{
argv++;
Modified: trunk/libspread/fl.c
===================================================================
--- trunk/libspread/fl.c 2006-01-17 23:49:00 UTC (rev 281)
+++ trunk/libspread/fl.c 2006-02-07 16:31:42 UTC (rev 282)
@@ -1011,11 +1011,11 @@
scatter *scat;
size_t groups_size;
scatp um_pos;
- char *groups;
+ char (*groups)[MAX_GROUP_NAME];
long err;
/* get groups info out of the msg: either in um->groups or um->new_grps */
- get_groups_info(um, &bm->num_groups, (char(**)[MAX_GROUP_NAME]) &groups);
+ get_groups_info(um, &bm->num_groups, &groups);
if ((groups_size = bm->num_groups * MAX_GROUP_NAME) != 0) {
if ((bm->groups = (char(*)[MAX_GROUP_NAME]) malloc(groups_size)) == 0)
@@ -2144,6 +2144,7 @@
(serv_type & (UNRELIABLE_MESS | RELIABLE_MESS | FIFO_MESS)) != 0);
}
+#ifndef NDEBUG
static const char *state_str(fl_view_state state) {
switch (state) {
case STEADY: return "STEADY";
@@ -2153,6 +2154,7 @@
default: return "UNKOWN STATE!!!\n";
}
}
+#endif
static float FL_SP_version(void) {
#ifdef SPREAD_VERSION
Modified: trunk/libspread/fl_p.h
===================================================================
--- trunk/libspread/fl_p.h 2006-01-17 23:49:00 UTC (rev 281)
+++ trunk/libspread/fl_p.h 2006-02-07 16:31:42 UTC (rev 282)
@@ -330,7 +330,9 @@
static int is_private_group(const char *group);
static int is_vulnerable_mess(const fl_group *group, service serv_type);
+#ifndef NDEBUG
static const char *state_str(fl_view_state state);
+#endif
static float FL_SP_version(void);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.