summaryrefslogtreecommitdiff
path: root/instr-daemon.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:49:19 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:49:19 -0500
commit3702b14f594c86af91e063e8b1403e7bfd982bfe (patch)
treecaec2c51f56121cd201141003cfb851f9108303b /instr-daemon.c
parentdcbb634ee0093999b5316a579728969e8bdb1852 (diff)
initial parser re-implementation
Diffstat (limited to 'instr-daemon.c')
-rw-r--r--instr-daemon.c8
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) {