summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2016-05-06 19:19:29 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2016-05-07 06:21:15 +0200
commit9e656b924b16b88dbd4997538a5dce885505980f (patch)
treed28f8e01b9985561bfef89ac3f3d33427a2a7675
parentb355ca08d0b4656bf529ebf90cc43121dda58418 (diff)
downloadcmumble-9e656b924b16b88dbd4997538a5dce885505980f.tar.gz
cmumble-9e656b924b16b88dbd4997538a5dce885505980f.tar.bz2
cmumble-9e656b924b16b88dbd4997538a5dce885505980f.zip
io.c: Rename read_cb to stdin_callback
..to be more understandable
-rw-r--r--src/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 379e48f..e36bc30 100644
--- a/src/io.c
+++ b/src/io.c
@@ -21,7 +21,7 @@
static gpointer global_rl_user_data = NULL;
static gboolean
-read_cb(GIOChannel *source, GIOCondition condition, gpointer data)
+stdin_callback(GIOChannel *source, GIOCondition condition, gpointer data)
{
struct cmumble *cm = data;
@@ -194,7 +194,7 @@ cmumble_io_init(struct cmumble *cm)
cm->io.input_channel = g_io_channel_unix_new(STDIN_FILENO);
g_io_add_watch(cm->io.input_channel, G_IO_IN | G_IO_HUP,
- read_cb, cm);
+ stdin_callback, cm);
if (tcgetattr(STDIN_FILENO, &term) < 0) {
g_printerr("tcgetattr failed");