comparison TOOLS/realcodecs/drv3.c @ 28232:8df85ad26746

Add missing 'void' keyword to parameterless function declarations.
author diego
date Mon, 05 Jan 2009 14:48:03 +0000
parents 3f3f00ce912e
children 0f1b5b68af32
comparison
equal deleted inserted replaced
28231:4e5ef09a3959 28232:8df85ad26746
46 46
47 int b_dlOpened=0; 47 int b_dlOpened=0;
48 void *handle=NULL; 48 void *handle=NULL;
49 49
50 /* exits program when failure */ 50 /* exits program when failure */
51 void loadSyms() { 51 void loadSyms(void) {
52 fputs("loadSyms()\n", stderr); 52 fputs("loadSyms()\n", stderr);
53 if (!b_dlOpened) { 53 if (!b_dlOpened) {
54 char *error; 54 char *error;
55 55
56 fputs("opening dll...\n",stderr); 56 fputs("opening dll...\n",stderr);
122 } 122 }
123 */ b_dlOpened=1; 123 */ b_dlOpened=1;
124 } 124 }
125 } 125 }
126 126
127 void closeDll() { 127 void closeDll(void) {
128 if (handle) { 128 if (handle) {
129 b_dlOpened=0; 129 b_dlOpened=0;
130 dlclose(handle); 130 dlclose(handle);
131 handle=NULL; 131 handle=NULL;
132 } 132 }
137 } 137 }
138 138
139 struct timezone tz; 139 struct timezone tz;
140 struct timeval tv1, tv2; 140 struct timeval tv1, tv2;
141 141
142 void tic() { 142 void tic(void) {
143 gettimeofday(&tv1, &tz); 143 gettimeofday(&tv1, &tz);
144 } 144 }
145 145
146 void toc() { 146 void toc(void) {
147 long secs, usecs; 147 long secs, usecs;
148 gettimeofday(&tv2, &tz); 148 gettimeofday(&tv2, &tz);
149 secs=tv2.tv_sec-tv1.tv_sec; 149 secs=tv2.tv_sec-tv1.tv_sec;
150 usecs=tv2.tv_usec-tv1.tv_usec; 150 usecs=tv2.tv_usec-tv1.tv_usec;
151 if (usecs<0) { 151 if (usecs<0) {