Skip to content
Snippets Groups Projects
Commit 5d6c0be6 authored by deuce's avatar deuce
Browse files

Fix warnings.

parent e56734dd
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@ get_from_remote(gpointer data)
int ch;
gchar *outstr;
gchar instr[2];
int inbytes;
int outbytes;
gsize inbytes;
gsize outbytes;
instr[1]=0;
switch(chat_check_remote()) {
......@@ -99,8 +99,8 @@ on_LocalText_key_press_event (GtkWidget *widget,
{
gchar *outstr;
gchar instr[2];
int inbytes;
int outbytes;
gsize inbytes;
gsize outbytes;
if(event->keyval==GDK_BackSpace || event->keyval==GDK_Delete) {
GtkTextIter start;
......
......@@ -132,13 +132,15 @@ int chat_read_byte(void)
in=-1;
return(-1);
case 0:
if(lseek(in,0,SEEK_SET)==-1); /* Wrapped */
if(lseek(in,0,SEEK_SET)==-1) /* Wrapped */
return(-1);
switch(read(in,&ch,1)) {
case -1:
close(in);
in=-1;
return(-1);
case 0:
return 0;
}
/* Fall-through */
case 1:
......
......@@ -469,7 +469,6 @@ int read_config(void)
}
int main(int argc, char *argv[]) {
GError* error = NULL;
GtkWindow* xml;
gtk_init(&argc, &argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment