diff options
| author | Alejandro Colomar <colomar.6.4.3@gmail.com> | 2020-09-03 21:50:10 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-09-05 14:49:42 +0200 |
| commit | 7c813ea52882d94514955f5160fc253308236dc9 (patch) | |
| tree | d6c8c130db88961960a609198f5c7ad8b3feef5c /man3 | |
| parent | 9e81cf89e5b6bcd66a81d2931964bbbbe5c31962 (diff) | |
| download | man-pages-7c813ea52882d94514955f5160fc253308236dc9.tar.gz | |
mbsinit.3: Use sizeof consistently
Use ``sizeof`` consistently through all the examples in the following
way:
- Use the name of the variable instead of its type as argument for
``sizeof``.
Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/mbsinit.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/mbsinit.3 b/man3/mbsinit.3 index aeaa6ce889..74fe48f863 100644 --- a/man3/mbsinit.3 +++ b/man3/mbsinit.3 @@ -59,7 +59,7 @@ in initial state is to set it to zero: .in +4n .EX mbstate_t state; -memset(&state, 0, sizeof(mbstate_t)); +memset(&state, 0, sizeof(state)); .EE .in .PP |
