summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Piskun <o.piskun@samsung.com>2017-11-07 19:56:53 +0200
committerMykyta Biliavskyi <m.biliavskyi@samsung.com>2017-11-07 19:56:53 +0200
commit36645822ac75de611b2418dca16c594ad61b6722 (patch)
tree0c9dc4d7e09e8b77e870786cb6b51f4d2474ea79
parentaa3a7419e3ae8b922b19746c805828c0e6e4ae8a (diff)
Add comments for NULL-body loops.devs/deepwarrior/logload
Summary: When Body is omitted intentionally in 'for/while' statement, it shall contain null statement (';') and comment /*NULL*/ Reviewers: NikaWhite, i.furs Reviewed By: NikaWhite Differential Revision: https://phab.enlightenment.org/D5436
-rw-r--r--src/lib/logload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/logload.c b/src/lib/logload.c
index 90c3ba5..46a0f16 100644
--- a/src/lib/logload.c
+++ b/src/lib/logload.c
@@ -783,6 +783,7 @@ _log_file_first_read(void *data, Ecore_Thread *thread EINA_UNUSED)
783 eina_evlog("+first_read", NULL, 0.0, NULL); 783 eina_evlog("+first_read", NULL, 0.0, NULL);
784 In_Thread_Data *thd = (In_Thread_Data*) data; 784 In_Thread_Data *thd = (In_Thread_Data*) data;
785 while (_log_block_process(thd)); 785 while (_log_block_process(thd));
786 /*NULL*/
786 eina_evlog("-first_read", NULL, 0.0, "Log file first read success"); 787 eina_evlog("-first_read", NULL, 0.0, "Log file first read success");
787} 788}
788 789
@@ -1013,6 +1014,7 @@ _log_block_info_read(In_Thread_Data *thd, Stream_Block_Data *block_data,
1013 end = (char *)ptr + blocksize; 1014 end = (char *)ptr + blocksize;
1014 while ((ptr = _log_block_event_read(thd, ptr, end, start_pointer, 1015 while ((ptr = _log_block_event_read(thd, ptr, end, start_pointer,
1015 feedback, source_type))); 1016 feedback, source_type)));
1017 /*NULL*/
1016 } 1018 }
1017 1019
1018 if (source_type == LOG_SOURCE_STREAM) 1020 if (source_type == LOG_SOURCE_STREAM)