Mostly warnings about deprecated use of K&R function definitions.
int rc;
uintptr_t t = 1;
- printf("In main: creating thread %ld\n", t);
+ printf("In main: creating thread %u\n", (unsigned)t);
rc = pthread_create(&thread, NULL, PrintHello, (void *)t);
if (rc)
printf("ERROR; return code from pthread_create() is %d\n", rc);
/* aint(x) Return integer part of number. Truncates towards 0 */
-double aint(x)
-double x;
+double aint(double x)
{
long l;
/* sin(x) Return sine, x in radians */
-static double sin(x)
-double x;
+static double sin(double x)
{
int sign;
double y, r, z;
/* cos(x) Return cosine, x in radians, by identity */
-static double cos(x)
-double x;
+static double cos(double x)
{
x = (x < 0.0) ? -x : x;
if (x > twopi) /* Do range reduction here to limit */
/* tan(x) Return tangent, x in radians, by identity */
-static double tan(x)
-double x;
+static double tan(double x)
{
return sin(x) / cos(x);
}
/* sqrt(x) Return square root. Initial guess, then Newton-
Raphson refinement */
-double sqrt(x)
-double x;
+double sqrt(double x)
{
double c, cl, y;
int n;
/* atan(x) Return arctangent in radians,
range -pi/2 to pi/2 */
-static double atan(x)
-double x;
+static double atan(double x)
{
int sign, l, y;
double a, b, z;
/* atan2(y,x) Return arctangent in radians of y/x,
range -pi to pi */
-static double atan2(y, x)
-double y, x;
+static double atan2(double y, double x)
{
double temp;
/* asin(x) Return arcsine in radians of x */
-static double asin(x)
-double x;
+static double asin(double x)
{
if (fabs(x)>1.0) {
fprintf(stderr,
/* Perform ray trace in specific spectral line */
-static void trace_line(line, ray_h)
-int line;
-double ray_h;
+static void trace_line(int line, double ray_h)
{
int i;
/* Initialise when called the first time */
-int main(argc, argv)
-int argc;
-char *argv[];
+int main(int argc, char* argv[])
{
int i, j, k, errors;
double od_fline, od_cline;
#include "coregrind/m_debuglog.c"
-void run(const char *format, ...)
+int run(const char *format, ...)
{
int n, num_stars;
const char *p;
emit(buf.buf, strlen(buf.buf));
fprintf(stderr, "\twrote %3d chars\n", n);
+
+ return num_stars;
}
int main(int argc, char *argv[])
/* aint(x) Return integer part of number. Truncates towards 0 */
-double aint(x)
-double x;
+double aint(double x)
{
long l;
/* sin(x) Return sine, x in radians */
-static double sin(x)
-double x;
+static double sin(double x)
{
int sign;
double y, r, z;
/* cos(x) Return cosine, x in radians, by identity */
-static double cos(x)
-double x;
+static double cos(double x)
{
x = (x < 0.0) ? -x : x;
if (x > twopi) /* Do range reduction here to limit */
/* tan(x) Return tangent, x in radians, by identity */
-static double tan(x)
-double x;
+static double tan(double x)
{
return sin(x) / cos(x);
}
/* sqrt(x) Return square root. Initial guess, then Newton-
Raphson refinement */
-double sqrt(x)
-double x;
+double sqrt(double x)
{
double c, cl, y;
int n;
/* atan(x) Return arctangent in radians,
range -pi/2 to pi/2 */
-static double atan(x)
-double x;
+static double atan(double x)
{
int sign, l, y;
double a, b, z;
/* atan2(y,x) Return arctangent in radians of y/x,
range -pi to pi */
-static double atan2(y, x)
-double y, x;
+static double atan2(double y, double x)
{
double temp;
/* asin(x) Return arcsine in radians of x */
-static double asin(x)
-double x;
+static double asin(double x)
{
if (fabs(x)>1.0) {
fprintf(stderr,
/* Perform ray trace in specific spectral line */
-static void trace_line(line, ray_h)
-int line;
-double ray_h;
+static void trace_line(int line, double ray_h)
{
int i;
/* Initialise when called the first time */
-int main(argc, argv)
-int argc;
-char *argv[];
+int main(int argc, char* argv[])
{
int i, j, k, errors;
double od_fline, od_cline;
#define SWAP(a,b) tempr=(a); (a)=(b); (b)=tempr
-static void fourn(data, nn, ndim, isign)
- Float data[];
- int nn[], ndim, isign;
+static void fourn(Float data[], int nn[], int ndim, int isign)
{
register int i1, i2, i3;
int i2rev, i3rev, ip1, ip2, ip3, ifp1, ifp2;