Whamcloud - gitweb
lib/ext2fs: fix two compiler warnings in windows_io.c
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:11 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:38:31 +0000 (12:38 -0500)
commita5ea0052b1bb740614b778bea55ec922f16aa3aa
tree93e14703f33ffbfe2e29aa35c7f429834a3f07f5
parent37176e146147db576ae008093cdcac9b083c0f88
lib/ext2fs: fix two compiler warnings in windows_io.c

init_private_data() triggers a -Wstringop-truncation warning, due to a
real bug.  Fix it.

windows_open() has a -Wunused-variable warning because some
macOS-specific code was copied there for no reason.  Remove it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/windows_io.c