aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-06-22 10:32:46 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-06-22 10:32:46 +0100
commit424e66361e985d05e47a7af42e81cd32b09dd6e2 (patch)
tree0a638c896bee7e609ffde126cc5de810cd4609bd /lib/misc.c
parent98de2cca016d458ad2980c59f334fae10164b3bb (diff)
Partial fix for #419: Moved normalize() and some other stuff to OSCAR
becuase it's the only place where it's used, and using this to strip spaces from all screennames before sending them to BitlBee.
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/misc.c b/lib/misc.c
index ccf208b5..1ecb5181 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -61,31 +61,6 @@ void strip_linefeed(gchar *text)
g_free(text2);
}
-char *normalize(const char *s)
-{
- static char buf[BUF_LEN];
- char *t, *u;
- int x = 0;
-
- g_return_val_if_fail((s != NULL), NULL);
-
- u = t = g_strdup(s);
-
- strcpy(t, s);
- g_strdown(t);
-
- while (*t && (x < BUF_LEN - 1)) {
- if (*t != ' ') {
- buf[x] = *t;
- x++;
- }
- t++;
- }
- buf[x] = '\0';
- g_free(u);
- return buf;
-}
-
time_t get_time(int year, int month, int day, int hour, int min, int sec)
{
struct tm tm;