summaryrefslogtreecommitdiff
path: root/src/plugins/logger
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-03-19 23:33:14 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-03-19 23:33:14 +0100
commit2801b8437c0ee1c529244c1b7f7a6603e029a5a5 (patch)
tree506e97763d6dadc664a3811b600a0f2890cc0b4b /src/plugins/logger
parentbc3fa9fd4cddd24d066b60f11c08d3c8e5ff1e61 (diff)
downloadweechat-2801b8437c0ee1c529244c1b7f7a6603e029a5a5.zip
Reformat multi-line comments
Diffstat (limited to 'src/plugins/logger')
-rw-r--r--src/plugins/logger/logger-tail.c6
-rw-r--r--src/plugins/logger/logger.c22
2 files changed, 18 insertions, 10 deletions
diff --git a/src/plugins/logger/logger-tail.c b/src/plugins/logger/logger-tail.c
index 12e66fc64..08ead6a1b 100644
--- a/src/plugins/logger/logger-tail.c
+++ b/src/plugins/logger/logger-tail.c
@@ -160,8 +160,10 @@ logger_tail_file (const char *filename, int n_lines)
}
else if (!pos_eol)
{
- /* beginning of read buffer reached without EOL, then we
- add string to part_of_line, we'll use that later */
+ /*
+ * beginning of read buffer reached without EOL, then we
+ * add string to part_of_line, we'll use that later
+ */
if (part_of_line)
{
new_part_of_line = malloc (strlen (buf) + strlen (part_of_line) + 1);
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c
index 246f37b4d..0e227d5e9 100644
--- a/src/plugins/logger/logger.c
+++ b/src/plugins/logger/logger.c
@@ -318,9 +318,11 @@ logger_get_mask_expanded (struct t_gui_buffer *buffer, const char *mask)
if (!dir_separator)
return NULL;
- /* we first replace directory separator (commonly '/') by \01 because
- buffer mask can contain this char, and will be replaced by replacement
- char ('_' by default) */
+ /*
+ * we first replace directory separator (commonly '/') by \01 because
+ * buffer mask can contain this char, and will be replaced by replacement
+ * char ('_' by default)
+ */
mask2 = weechat_string_replace (mask, dir_separator, "\01");
if (!mask2)
goto end;
@@ -922,9 +924,11 @@ logger_backlog (struct t_gui_buffer *buffer, const char *filename, int lines)
{
/* initialize structure, because strptime does not do it */
memset (&tm_line, 0, sizeof (struct tm));
- /* we get current time to initialize daylight saving time in
- structure tm_line, otherwise printed time will be shifted
- and will not use DST used on machine */
+ /*
+ * we get current time to initialize daylight saving time in
+ * structure tm_line, otherwise printed time will be shifted
+ * and will not use DST used on machine
+ */
time_now = time (NULL);
localtime_r (&time_now, &tm_line);
pos_message[0] = '\0';
@@ -1068,8 +1072,10 @@ logger_adjust_log_filenames ()
{
if (strcmp (log_filename, ptr_logger_buffer->log_filename) != 0)
{
- /* log filename has changed (probably due to day change),
- then we'll use new filename */
+ /*
+ * log filename has changed (probably due to day
+ * change),then we'll use new filename
+ */
logger_stop (ptr_logger_buffer, 1);
logger_start_buffer (ptr_buffer, 1);
}