From 9ad95167b143d709c7338718ce66109843c2934e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 6 Oct 2022 20:25:30 -0700 Subject: [PATCH] sfio sfsync: realign 'mode' type with its use Squashes a -Wsign-conversion warning. --- lib/sfio/sfsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sfio/sfsync.c b/lib/sfio/sfsync.c index d04812542..890e7a910 100644 --- a/lib/sfio/sfsync.c +++ b/lib/sfio/sfsync.c @@ -69,7 +69,7 @@ static int _sfall(void) */ int sfsync(Sfio_t * f) { - int local, rv, mode; + int local, rv; Sfio_t *origf; if (!(origf = f)) @@ -97,7 +97,7 @@ int sfsync(Sfio_t * f) SFLOCK(f, local); /* pretend that this stream is not on a stack */ - mode = f->mode & SF_PUSH; + unsigned mode = f->mode & SF_PUSH; f->mode &= ~SF_PUSH; /* these streams do not need synchronization */ -- 2.40.0