dtscreen: Change to ANSI function definitions
authorPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 03:23:07 +0000 (04:23 +0100)
committerPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 03:23:07 +0000 (04:23 +0100)
cde/programs/dtscreen/dtscreen.c
cde/programs/dtscreen/hsbramp.c

index 84aad0f2e70709d2070d59ef8879c779e68575ce..a024445028fb185b131531b40ad029ea4f11b4e0 100644 (file)
@@ -139,8 +139,7 @@ static Window *winprop = NULL;  /* dtsession cover windows */
 
 /* VARARGS1 */
 void
-error(s1, s2)
-    char       *s1, *s2;
+error(char *s1, char *s2)
 {
     fprintf(stderr, s1, ProgramName, s2);
     exit(1);
index a5a539cc162e9455d29d80b58ac0e2a908760d64..2b05d44470b8af9f941b7d580a0aebd15a2bed3a 100644 (file)
 #include <math.h>
 
 void
-hsb2rgb(H, S, B, r, g, b)
-    double      H,
-                S,
-                B;
-    u_char     *r,
-               *g,
-               *b;
+hsb2rgb(double H, double S, double B,  u_char *r, u_char *g, u_char *b)
 {
     int         i;
     double      f;