diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-12 14:28:01 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2018-12-12 14:28:01 -0800 |
commit | 232d52d0a3bee1da688d3b073fbaaeec82460da9 (patch) | |
tree | 1c6cba276df6d21d997b87edc5f8a0d3008fb7e8 | |
parent | 5687ef2ec087089186e04aec720f60daecd24cf3 (diff) | |
download | experimental-232d52d0a3bee1da688d3b073fbaaeec82460da9.tar.gz |
Fix cert-dcl16-c clang-tidy warnings.
Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: I5e6ef71b8ae362566abe37fa86cfd186fae6aa0a
-rw-r--r-- | procstatlog/procstatlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procstatlog/procstatlog.c b/procstatlog/procstatlog.c index 44bf7bd..b580ec7 100644 --- a/procstatlog/procstatlog.c +++ b/procstatlog/procstatlog.c @@ -376,7 +376,7 @@ int main(int argc, char *argv[]) { return 2; } - long poll_usec = (long) (atof(argv[1]) * 1000000l); + long poll_usec = (long) (atof(argv[1]) * 1000000L); if (poll_usec <= 0) { fprintf(stderr, "illegal poll interval: %s\n", argv[1]); return 2; @@ -398,7 +398,7 @@ int main(int argc, char *argv[]) { printf("T - %ld.%06ld\n", after.tv_sec, after.tv_usec); long elapsed_usec = (long) after.tv_usec - before.tv_usec; - elapsed_usec += 1000000l * (after.tv_sec - before.tv_sec); + elapsed_usec += 1000000L * (after.tv_sec - before.tv_sec); if (poll_usec > elapsed_usec) usleep(poll_usec - elapsed_usec); } |