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
|
$NetBSD: patch-ab,v 1.4 2011/09/14 07:11:33 dholland Exp $
- fix void main
- fix bad printf format
- not sure what the last change is about (XXX)
--- hint.c.orig 1998-05-31 20:34:52.000000000 +0000
+++ hint.c
@@ -19,7 +19,7 @@
/* Refer to hint.h and typedefs.h for all-capitalized definitions. */
#include "hint.h"
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
FILE *curv; /* Output file for QUIPS curve */
char filnm[80]; /* Output file name */
@@ -85,12 +85,12 @@ void main(int argc, char *argv[])
printf("Please send results and questions to: hint@scl.ameslab.gov\n");
printf("When sending results please follow the form in README\n");
printf("________________________________________________________\n");
- printf("RECT is %d bytes\n",sizeof(RECT));
+ printf("RECT is %zd bytes\n",sizeof(RECT));
#ifdef DEBUG
curv = stdout;
#else
- sprintf(filnm,"data/%s",argv[0]);
+ sprintf(filnm,"data/%s","DOUBLE");
if ((curv = fopen(filnm, "w")) == NULL)
{
printf("Could not open data file\n");
|