diff options
Diffstat (limited to 'instr-daemon.c')
-rw-r--r-- | instr-daemon.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/instr-daemon.c b/instr-daemon.c index dc941b5..ff43579 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -21,7 +21,6 @@ stdinAvailable (GIOChannel *source, GIOCondition condition, gpointer data) { static char* buffer=NULL; static gint64 allocated=0; - GAsyncQueue* queue=NULL; //temporary buffer to read from stdin char tmp[STDIN_BUF_SIZE]; @@ -43,7 +42,6 @@ stdinAvailable (GIOChannel *source, GIOCondition condition, gpointer data) //final reallocation of the buffer to accomodate the whole string buffer=realloc(buffer,allocated+1); buffer[allocated] = '\0'; - int idx=0; g_print_debug("Got the buffer: \"%s\", tid: %p\n", buffer, g_thread_self()); @@ -146,8 +144,6 @@ handler (GThreadedSocketService *service, GOutputStream *out; GInputStream *in; - gssize size; - out = g_io_stream_get_output_stream (G_IO_STREAM (connection)); in = g_io_stream_get_input_stream (G_IO_STREAM (connection)); @@ -220,10 +216,10 @@ int main(int argc, char **argv) GError *error = NULL; GIOChannel* stdinChannel = NULL; - LCD_initialize(); - g_type_init (); + LCD_initialize(); + //register stdin channel stdinChannel = g_io_channel_unix_new(0); if(stdinChannel == NULL) { |