comparison mcabber/src/histolog.c @ 111:d896962c16fa

[/trunk] Changeset 125 by mikael * Fix a bad interaction (namespace issue), using static functions.
author mikael
date Sat, 23 Apr 2005 21:12:36 +0000
parents 3d41aca3d878
children 8ac67e951eab
comparison
equal deleted inserted replaced
110:3d41aca3d878 111:d896962c16fa
31 31
32 32
33 // user_histo_file() 33 // user_histo_file()
34 // Returns history filename for the given jid 34 // Returns history filename for the given jid
35 // Note: the caller *must* free the filename after use (if not null). 35 // Note: the caller *must* free the filename after use (if not null).
36 char *user_histo_file(const char *jid) 36 static char *user_histo_file(const char *jid)
37 { 37 {
38 char *filename; 38 char *filename;
39 if (!UseFileLogging) 39 if (!UseFileLogging)
40 return NULL; 40 return NULL;
41 41
45 return filename; 45 return filename;
46 } 46 }
47 47
48 // write() 48 // write()
49 // Adds a history (multi-)line to the jid's history logfile 49 // Adds a history (multi-)line to the jid's history logfile
50 void write(const char *jid, 50 static void write(const char *jid,
51 time_t timestamp, guchar type, guchar info, char *data) 51 time_t timestamp, guchar type, guchar info, char *data)
52 { 52 {
53 guint len = 0; 53 guint len = 0;
54 time_t ts; 54 time_t ts;
55 char *p; 55 char *p;
56 char *filename = user_histo_file(jid); 56 char *filename = user_histo_file(jid);