summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-16 15:13:31 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:42 +0100
commitd9bd35aeaca74c6eebb6af0030c890e0be9fb6fa (patch)
tree05b137faa0752ff2202131e6b70de46564fd2351
parentdd7b4f388211c856dc46e3cd1b0e300f2b87fec8 (diff)
downloadspice-d9bd35aeaca74c6eebb6af0030c890e0be9fb6fa.tar.gz
spice-d9bd35aeaca74c6eebb6af0030c890e0be9fb6fa.tar.xz
spice-d9bd35aeaca74c6eebb6af0030c890e0be9fb6fa.zip
reds_num_of_clients() -> reds_get_n_clients()
More consistent with glib naming conventions. Also make the function static since it's not used outside of this source file.
-rw-r--r--server/reds.c4
-rw-r--r--server/reds.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/server/reds.c b/server/reds.c
index f0ba5d3f..90a38073 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -842,7 +842,7 @@ int reds_get_n_channels(RedsState *reds)
}
-int reds_num_of_clients(RedsState *reds)
+static int reds_get_n_clients(RedsState *reds)
{
return reds ? reds->num_clients : 0;
}
@@ -850,7 +850,7 @@ int reds_num_of_clients(RedsState *reds)
SPICE_GNUC_VISIBLE int spice_server_get_num_clients(SpiceServer *s)
{
spice_assert(reds == s);
- return reds_num_of_clients(reds);
+ return reds_get_n_clients(reds);
}
static int secondary_channels[] = {
diff --git a/server/reds.h b/server/reds.h
index e0c4f20c..203b602c 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -90,7 +90,6 @@ typedef struct MainMigrateData MainMigrateData;
void reds_marshall_migrate_data(SpiceMarshaller *m);
void reds_fill_channels(SpiceMsgChannels *channels_info);
int reds_get_n_channels(RedsState *reds);
-int reds_num_of_clients(void);
#ifdef RED_STATISTICS
void reds_update_stat_value(uint32_t value);
#endif