summaryrefslogtreecommitdiff
path: root/graphics/vcg/patches/patch-demo_vcgcount_c
blob: 3782f9bb33f5fe2f973b8e5f64856d9a3641355d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-demo_vcgcount_c,v 1.1 2013/04/14 00:15:27 dholland Exp $

- fix void main

--- demo/vcgcount.c~	1995-02-08 11:27:34.000000000 +0000
+++ demo/vcgcount.c
@@ -64,7 +64,7 @@
  * ----------
  */
 
-void main		_PP((void));
+int main		_PP((void));
 
 
 
@@ -85,9 +85,9 @@ int nredges;      /* The number of edges
  */
 
 #ifdef ANSI_C
-void main(void)
+int main(void)
 #else
-void main()
+int main()
 #endif
 {
 	register char *c;
@@ -120,6 +120,7 @@ void main()
 	}
 	PRINTF("This graph contains %d nodes and %d edges.\n", 
 		nrnodes, nredges);
+	return 0;
 }