From 0c0b9a67358401e43d0d3605241b6a94ca8a0eec Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Tue, 30 Aug 2022 00:13:56 +0100 Subject: [PATCH] Couple of bug typos fixed. --- bwbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bwbar.c b/bwbar.c index dba0029..11dc675 100644 --- a/bwbar.c +++ b/bwbar.c @@ -82,7 +82,7 @@ void skipline(FILE *f) } while ( ch != '\n' && ch != EOF ); } -int write_bar_graph(FILE *f, static png_color palette, double perc, int width, int height, int border, int spacers) +int write_bar_graph(FILE *f, png_color palette[], double perc, int width, int height, int border, int spacers) { int bwidth, bheight; /* Width and height including border */ double frac; @@ -336,7 +336,7 @@ int main(int argc, char *argv[]) /**** Begin code that generates output ****/ if ( !first ) { - FILE *ubar, *lpngmaker *dpngmaker; + FILE *ubar, *lpngmaker, *dpngmaker; timedelta = (double)(t_now.tv_sec - t_last.tv_sec) + (t_now.tv_usec - t_last.tv_usec)/1.0e+6;