diff options
author | Eric Biggers <ebiggers@google.com> | 2023-01-21 12:32:12 -0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-01-27 12:38:31 -0500 |
commit | ca3477857864de9c345dcf8069666f47be0a8bbc (patch) | |
tree | b21b08444586b98d697ef70cf9133fe101e36111 | |
parent | a5ea0052b1bb740614b778bea55ec922f16aa3aa (diff) | |
download | e2fsprogs-ca3477857864de9c345dcf8069666f47be0a8bbc.tar.gz |
lib/ext2fs: fix a -Wpointer-sign warning in ext2fs_mmp_start()
This showed up when building for Windows.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | lib/ext2fs/mmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/mmp.c b/lib/ext2fs/mmp.c index 14289706a..eb9417020 100644 --- a/lib/ext2fs/mmp.c +++ b/lib/ext2fs/mmp.c @@ -356,7 +356,7 @@ clean_seq: #ifdef HAVE_GETHOSTNAME gethostname((char *) mmp_s->mmp_nodename, sizeof(mmp_s->mmp_nodename)); #else - strcpy(mmp_s->mmp_nodename, "unknown host"); + strcpy((char *) mmp_s->mmp_nodename, "unknown host"); #endif strncpy((char *) mmp_s->mmp_bdevname, fs->device_name, sizeof(mmp_s->mmp_bdevname)); |