summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Doliner <markdoliner@pidgin.im>2007-01-25 17:45:45 +0000
committerMark Doliner <markdoliner@pidgin.im>2007-01-25 17:45:45 +0000
commit86106e6f53cf37e18e1675088ab9f3ed3188fb04 (patch)
tree47b518c0b3abb0f265a148db4c0796c0fe3aa66d
parentbfd5f20ecbcd1e0ad385982dfb27366b29140a92 (diff)
downloadpidgin-86106e6f53cf37e18e1675088ab9f3ed3188fb04.tar.gz
Sun apparently doesn't like when void functions return
the return value from another void function. For example: void func1(void) { printf("hi"); } void func2(void) { return func1(); /* this line causes a warning */ }
-rw-r--r--libgaim/protocols/oscar/misc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libgaim/protocols/oscar/misc.c b/libgaim/protocols/oscar/misc.c
index 4d897a0fba..e78060f750 100644
--- a/libgaim/protocols/oscar/misc.c
+++ b/libgaim/protocols/oscar/misc.c
@@ -70,7 +70,10 @@ aim_genericreq_l(OscarData *od, FlapConnection *conn, guint16 family, guint16 su
aim_snacid_t snacid;
if (!longdata)
- return aim_genericreq_n(od, conn, family, subtype);
+ {
+ aim_genericreq_n(od, conn, family, subtype);
+ return;
+ }
frame = flap_frame_new(od, 0x02, 10+4);
@@ -89,7 +92,10 @@ aim_genericreq_s(OscarData *od, FlapConnection *conn, guint16 family, guint16 su
aim_snacid_t snacid;
if (!shortdata)
- return aim_genericreq_n(od, conn, family, subtype);
+ {
+ aim_genericreq_n(od, conn, family, subtype);
+ return;
+ }
frame = flap_frame_new(od, 0x02, 10+2);