changeset 20388:12b1123f0cc9

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 */ }
author Mark Doliner <mark@kingant.net>
date Thu, 25 Jan 2007 17:45:45 +0000
parents 24843d86c2a3
children e354528c4163
files libgaim/protocols/oscar/misc.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/oscar/misc.c	Thu Jan 25 08:29:50 2007 +0000
+++ b/libgaim/protocols/oscar/misc.c	Thu Jan 25 17:45:45 2007 +0000
@@ -70,7 +70,10 @@
 	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_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);