diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2008-06-28 19:32:41 +0200 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2008-06-28 19:32:41 +0200 | 
| commit | 178e2f8f71e5ebd4501f455c874f816b9ba19ade (patch) | |
| tree | 8185c7ed827ca1cea4fac1431e9d8a2eeff86fa3 /lib | |
| parent | 2e0f24d00b85c617400413bb2d179fd1028420c4 (diff) | |
| parent | e0f9170849e9c4aaa679f86703a60686d36607bb (diff) | |
Merge trunk.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/misc.c | 25 | ||||
| -rw-r--r-- | lib/misc.h | 1 | 
2 files changed, 0 insertions, 26 deletions
| @@ -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; @@ -40,7 +40,6 @@ struct ns_srv_reply  G_MODULE_EXPORT void strip_linefeed( gchar *text );  G_MODULE_EXPORT char *add_cr( char *text );  G_MODULE_EXPORT char *strip_newlines(char *source); -G_MODULE_EXPORT char *normalize( const char *s );  G_MODULE_EXPORT time_t get_time( int year, int month, int day, int hour, int min, int sec );  double gettime( void ); | 
