From: Matthew Fernandez Date: Wed, 28 Dec 2022 18:09:05 +0000 (-0800) Subject: common agputc: squash -Wconversion warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e6140ce9244d6ff73a6acd8a97482bc6a979350;p=graphviz common agputc: squash -Wconversion warning --- diff --git a/lib/common/output.c b/lib/common/output.c index 6425d32e0..82faa2859 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -32,14 +32,13 @@ static void agputs (const char* s, FILE* fp) { putstr(fp, s); } -static void agputc (int c, FILE* fp) -{ + +static void agputc(char c, FILE *fp) { static char buf[2] = {'\0','\0'}; buf[0] = c; putstr(fp, buf); } - static void printstring(FILE * f, char *prefix, char *s) { if (prefix) agputs(prefix, f);