opnsense-ports/graphics/urt/files/patch-tools__clock__rleClock.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

37 lines
842 B
C

--- tools/clock/rleClock.c.orig 1992-04-30 23:19:39.000000000 +0900
+++ tools/clock/rleClock.c 2012-10-16 00:38:03.000000000 +0900
@@ -33,6 +33,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <math.h>
#include <ctype.h>
#include "rle.h"
@@ -133,7 +134,7 @@
*/
#ifdef USE_PROTOTYPES
-void main(int argc, char *argv[]);
+int main(int argc, char *argv[]);
void ifImageSet(int i, int j, int value, color_t *color);
void drawHand(double place, double scale, double radius, int mask, int edge);
void rasterAddBits(int mask, int match, int value);
@@ -156,7 +157,7 @@
void stackPush(int x, int y, int dir);
int stackPop(void);
#else
-void main();
+int main();
void ifImageSet();
void drawHand();
void rasterAddBits();
@@ -181,7 +182,7 @@
#endif
char **gargv;
-void
+int
main (argc, argv)
int argc;
char *argv[];