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;