commit 0d3ffcde4a7784bf4692d5e1dd2fdd7e3add463a
parent 7f80fcc410064c1bb265ae9562d3d5a610f9dbbe
Author: Paco Esteban <paco@e1e0.net>
Date: Sat, 1 Aug 2020 19:57:32 +0200
remove c++ style comments
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/clock.c b/clock.c
@@ -134,7 +134,7 @@ main(int argc, char *argv[])
gmt_offset = tm->tm_gmtoff / 3600;
if (eflag && strlen(extFile) > 2) {
- // read external file only interval * sleep
+ /* read external file only interval * sleep */
if (readCount == readInterval) {
if (getExtTag(extTag, extFile) < 0) {
err(1, "Error getting external tag\n");
@@ -237,7 +237,8 @@ getExtTag(char *tagBuff, char *tagFile) {
return -2;
len = strlen(tagBuff);
- if( tagBuff[len-1] == '\n' ) // if tagBuff < maxlen we remove \n
+ /* if tagBuff < maxlen we remove \n */
+ if( tagBuff[len-1] == '\n' )
tagBuff[len-1] = 0x20;
return 0;