--- a/src/protocols/oscar/oscar.h Sun Apr 09 22:34:08 2006 -0400
+++ b/src/protocols/oscar/oscar.h Sun Apr 09 22:38:33 2006 -0400
@@ -1386,9 +1386,9 @@
int aimutil_itemcnt(char *toSearch, char dl);
char *aimutil_itemindex(char *toSearch, int theindex, char dl);
-int aim_snvalid(const char *sn);
-int aim_sn_is_icq(const char *sn);
-int aim_sn_is_sms(const char *sn);
+gboolean aim_snvalid(const char *sn); +gboolean aim_sn_is_icq(const char *sn); +gboolean aim_sn_is_sms(const char *sn); int aim_snlen(const char *sn);
int aim_sncmp(const char *sn1, const char *sn2);
--- a/src/protocols/oscar/util.c Sun Apr 09 22:34:08 2006 -0400
+++ b/src/protocols/oscar/util.c Sun Apr 09 22:38:33 2006 -0400
@@ -37,7 +37,8 @@
-int aimutil_tokslen(char *toSearch, int theindex, char dl)
+aimutil_tokslen(char *toSearch, int theindex, char dl) @@ -61,7 +62,8 @@
-int aimutil_itemcnt(char *toSearch, char dl)
+aimutil_itemcnt(char *toSearch, char dl) @@ -78,7 +80,8 @@
-char *aimutil_itemindex(char *toSearch, int theindex, char dl)
+aimutil_itemindex(char *toSearch, int theindex, char dl) @@ -120,9 +123,9 @@
* Calculate the checksum of a given icon.
-guint16 aimutil_iconsum(const guint8 *buf, int buflen)
+aimutil_iconsum(const guint8 *buf, int buflen) @@ -141,9 +144,10 @@
* Example: Henry_Ford@mac.com
- * @return 1 if the screen name is valid, 0 if not.
+ * @return TRUE if the screen name is valid, FALSE if not. -static int aim_snvalid_aim(const char *sn)
+aim_snvalid_aim(const char *sn) @@ -151,19 +155,20 @@
if (!isalnum(sn[i]) && (sn[i] != ' ') &&
(sn[i] != '@') && (sn[i] != '.') &&
(sn[i] != '_') && (sn[i] != '-'))
* Check if the given screen name is a valid ICQ screen name.
- * @return 1 if the screen name is valid, 0 if not.
+ * @return TRUE if the screen name is valid, FALSE if not. -static int aim_snvalid_icq(const char *sn)
+aim_snvalid_icq(const char *sn) @@ -179,9 +184,10 @@
* Check if the given screen name is a valid SMS screen name.
- * @return 1 if the screen name is valid, 0 if not.
+ * @return TRUE if the screen name is valid, FALSE if not. -static int aim_snvalid_sms(const char *sn)
+aim_snvalid_sms(const char *sn) @@ -199,9 +205,10 @@
* Check if the given screen name is a valid oscar screen name.
- * @return 1 if the screen name is valid, 0 if not.
+ * @return TRUE if the screen name is valid, FALSE if not. -int aim_snvalid(const char *sn)
+aim_snvalid(const char *sn) if ((sn == NULL) || (*sn == '\0'))
@@ -217,18 +224,19 @@
- * Determine if a given screen name is an ICQ screen name
+ * Determine if a given screen name is an ICQ screen name * (i.e. it begins with a number).
* @sn A valid AIM or ICQ screen name.
- * @return 1 if the screen name is an ICQ screen name. Otherwise 0
+ * @return TRUE if the screen name is an ICQ screen name. Otherwise -int aim_sn_is_icq(const char *sn)
+aim_sn_is_icq(const char *sn)
@@ -236,25 +244,24 @@
* (i.e. it begins with a +).
* @sn A valid AIM or ICQ screen name.
- * @return 1 if the screen name is an SMS number. Otherwise 0
+ * @return TRUE if the screen name is an SMS number. Otherwise -int aim_sn_is_sms(const char *sn)
+aim_sn_is_sms(const char *sn)
-* int snlen(const char *)
-* This takes a screen name and returns its length without
-* spaces. If there are no spaces in the SN, then the
-* return is equal to that of strlen().
-int aim_snlen(const char *sn)
+ * This takes a screen name and returns its length without + * spaces. If there are no spaces in the SN, then the + * return is equal to that of strlen(). +aim_snlen(const char *sn) @@ -270,20 +277,18 @@
-* int sncmp(const char *, const char *)
-* This takes two screen names and compares them using the rules
-* on screen names for AIM/AOL. Mainly, this means case and space
-* insensitivity (all case differences and spacing differences are
-* ignored, with the exception that screen names can not start with
-int aim_sncmp(const char *sn1, const char *sn2)
+ * This takes two screen names and compares them using the rules + * on screen names for AIM/AOL. Mainly, this means case and space + * insensitivity (all case differences and spacing differences are + * ignored, with the exception that screen names can not start with +aim_sncmp(const char *sn1, const char *sn2) if ((sn1 == NULL) || (sn2 == NULL))