summaryrefslogtreecommitdiff
path: root/system/ksh-openbsd/patches/02-remove_fp.diff
diff options
context:
space:
mode:
Diffstat (limited to 'system/ksh-openbsd/patches/02-remove_fp.diff')
-rw-r--r--system/ksh-openbsd/patches/02-remove_fp.diff12
1 files changed, 5 insertions, 7 deletions
diff --git a/system/ksh-openbsd/patches/02-remove_fp.diff b/system/ksh-openbsd/patches/02-remove_fp.diff
index 25817d0a56..06f586e5c8 100644
--- a/system/ksh-openbsd/patches/02-remove_fp.diff
+++ b/system/ksh-openbsd/patches/02-remove_fp.diff
@@ -78,11 +78,10 @@ diff -u -p -r1.15 shf.c
if (!fmt)
return 0;
-@@ -946,134 +915,6 @@ shf_vfprintf(struct shf *shf, const char
- precision = len; /* no loss */
+@@ -922,134 +922,6 @@ shf_vfprintf(struct shf *shf, const char
}
break;
--
+
-#ifdef FP
- case 'e':
- case 'g':
@@ -102,7 +101,7 @@ diff -u -p -r1.15 shf.c
- /*
- * Assumes doubles are pushed on
- * the stack. If this is not so, then
-- * FL_LONG/FL_SHORT should be checked.
+- * FL_LLONG/FL_LONG/FL_SHORT should be checked.
- */
- fpnum = va_arg(args, double);
- s = fpbuf;
@@ -210,8 +209,7 @@ diff -u -p -r1.15 shf.c
- break;
- }
-#endif /* FP */
-
+-
case 's':
if (!(s = va_arg(args, char *)))
-
-
+ s = "(null %s)";