]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Monitor: Increase size of percentalert to avoid gcc warning
authorJes Sorensen <jsorensen@fb.com>
Thu, 31 May 2018 15:45:21 +0000 (11:45 -0400)
committerJes Sorensen <jsorensen@fb.com>
Thu, 31 May 2018 15:45:21 +0000 (11:45 -0400)
commit975898395951835f5a8051441af21cc995921f8c
tree04bc91cd5b85448089df1fc0b270fd943f33fb02
parent5a5b3a6725ded07697f03ddd05ee537ce289e951
Monitor: Increase size of percentalert to avoid gcc warning

gcc-8.1 complains about truncated string operations. While we know
percent will never grow larger than 100, it doesn't cost us anything
to increase the size of 'percentalert' on the stack like this.

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Monitor.c