Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/histolog.c @ 1303:b6fdbfa6b219
Minor whitespace change
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 07 Sep 2007 17:07:05 +0200 |
parents | e42f48103609 |
children | 0dda8238af21 |
comparison
equal
deleted
inserted
replaced
1302:1abddbec502a | 1303:b6fdbfa6b219 |
---|---|
64 char *hlog_get_log_jid(const char *bjid) | 64 char *hlog_get_log_jid(const char *bjid) |
65 { | 65 { |
66 struct stat bufstat; | 66 struct stat bufstat; |
67 char *path; | 67 char *path; |
68 char *log_jid = NULL; | 68 char *log_jid = NULL; |
69 | 69 |
70 path = user_histo_file(bjid); | 70 path = user_histo_file(bjid); |
71 do { | 71 do { |
72 /*scr_LogPrint(LPRINT_NORMAL, "path=%s", path);*/ | 72 if (lstat(path, &bufstat) != 0) |
73 if(lstat(path, &bufstat) != 0) | |
74 break; | 73 break; |
75 if(S_ISLNK(bufstat.st_mode)) { | 74 if (S_ISLNK(bufstat.st_mode)) { |
76 g_free(log_jid); | 75 g_free(log_jid); |
77 log_jid = g_new(char, bufstat.st_size+1); | 76 log_jid = g_new(char, bufstat.st_size+1); |
78 readlink(path, log_jid, bufstat.st_size); | 77 readlink(path, log_jid, bufstat.st_size); |
79 g_free(path); | 78 g_free(path); |
80 log_jid[bufstat.st_size] = '\0'; | 79 log_jid[bufstat.st_size] = '\0'; |