gisi: Return negative errnos
authorAki Niemi <aki.niemi@nokia.com>
Fri, 14 May 2010 13:34:00 +0000 (16:34 +0300)
committerAki Niemi <aki.niemi@nokia.com>
Fri, 14 May 2010 13:51:25 +0000 (16:51 +0300)
gisi/client.c

index d182303..e5af064 100644 (file)
@@ -475,7 +475,7 @@ int g_isi_subscribe(GIsiClient *client, uint8_t type,
        GIsiIndication **old;
 
        if (cb == NULL)
-               return EINVAL;
+               return -EINVAL;
 
        ind = g_try_new0(GIsiIndication, 1);
        if (!ind)