mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
c296805691
Put back original creator and whitespace Fix patching Greatly simplify the Makefile Make it LOCALBASE safe Reported by: danfe Pointyhat to: swills
19 lines
756 B
C
19 lines
756 B
C
--- commonc.c.orig 2016-09-14 03:33:00 UTC
|
|
+++ commonc.c
|
|
@@ -3247,13 +3247,13 @@ void tempFileName (
|
|
/* From now on, we will use k and c to generate the filename. To reduce */
|
|
/* upgrading problems, old save file names are renamed. */
|
|
|
|
- if (w->k != 1.0 || abs(w->c) != 1) {
|
|
+ if (w->k != 1.0 || labs(w->c) != 1) {
|
|
char v258_filename[32];
|
|
strcpy (v258_filename, buf);
|
|
buf[1] = 0;
|
|
if (w->k != 1.0) sprintf (buf+strlen(buf), "%g", fmod (w->k, 1000000.0));
|
|
sprintf (buf+strlen(buf), "_%ld", p);
|
|
- if (abs(w->c) != 1) sprintf (buf+strlen(buf), "_%d", abs(w->c) % 1000);
|
|
+ if (labs(w->c) != 1) sprintf (buf+strlen(buf), "_%d", labs(w->c) % 1000);
|
|
rename (v258_filename, buf);
|
|
if (buf[0] == 'p') {
|
|
v258_filename[0] = buf[0] = 'q';
|