From: Matthew Fernandez <matthew.fernandez@gmail.com>
Date: Fri, 7 Oct 2022 03:25:30 +0000 (-0700)
Subject: sfio sfsync: realign 'mode' type with its use
X-Git-Tag: 6.0.2~4^2~2
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ad95167b143d709c7338718ce66109843c2934e;p=graphviz

sfio sfsync: realign 'mode' type with its use

Squashes a -Wsign-conversion warning.
---

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 */