diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-08 20:01:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-08 20:01:10 -0400 |
| commit | a9c5346c295acf463096716c559daca51668d5f6 (patch) | |
| tree | ceaf5f13ead8cbde1c501aa45e65df8446410ad7 /lib/buffer.c | |
| parent | ec03d9e3a4ab55f57cd8afb00aa0aa0bbc5a2981 (diff) | |
| parent | 0d6f7fd6fd9dcaa62fb77a10d3a1ad8d0d74f980 (diff) | |
Merge pull request #5937 from ton31337/fix/sizeof
*: Replace `sizeof something` to sizeof(something)
Diffstat (limited to 'lib/buffer.c')
| -rw-r--r-- | lib/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buffer.c b/lib/buffer.c index 766b9791a5..ff49bc83df 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -288,7 +288,7 @@ buffer_status_t buffer_flush_window(struct buffer *b, int fd, int width, /* Previously print out is performed. */ if (erase_flag) { iov[iov_index].iov_base = erase; - iov[iov_index].iov_len = sizeof erase; + iov[iov_index].iov_len = sizeof(erase); iov_index++; } @@ -341,7 +341,7 @@ buffer_status_t buffer_flush_window(struct buffer *b, int fd, int width, /* In case of `more' display need. */ if (b->tail && (b->tail->sp < b->tail->cp) && !no_more_flag) { iov[iov_index].iov_base = more; - iov[iov_index].iov_len = sizeof more; + iov[iov_index].iov_len = sizeof(more); iov_index++; } |
