comparison src/protocols/gg/gg.c @ 7631:ea2d07ad05a9

[gaim-migrate @ 8255] long car rides and a power inverter can generate some interesting code tweaks committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 25 Nov 2003 07:16:11 +0000
parents 3c21f3084ff0
children 1b8261f374ea
comparison
equal deleted inserted replaced
7630:2df4d470c12a 7631:ea2d07ad05a9
1 /* 1 /*
2 * gaim - Gadu-Gadu Protocol Plugin 2 * gaim - Gadu-Gadu Protocol Plugin
3 * $Id: gg.c 8091 2003-11-11 20:34:00Z hermanator $ 3 * $Id: gg.c 8255 2003-11-25 07:16:11Z faceprint $
4 * 4 *
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
84 } 84 }
85 85
86 static gboolean invalid_uin(const char *uin) 86 static gboolean invalid_uin(const char *uin)
87 { 87 {
88 unsigned long int res = strtol(uin, (char **)NULL, 10); 88 unsigned long int res = strtol(uin, (char **)NULL, 10);
89 if (res == LONG_MIN || res == LONG_MAX || res == 0) 89 if (res == ULONG_MAX || res == 0)
90 return TRUE; 90 return TRUE;
91 return FALSE; 91 return FALSE;
92 } 92 }
93 93
94 static gint args_compare(gconstpointer a, gconstpointer b) 94 static gint args_compare(gconstpointer a, gconstpointer b)