From 13011721d9ca29f13c5bc535c9de94d9108f3bef Mon Sep 17 00:00:00 2001 From: Ninad Sachania Date: Sat, 2 Nov 2024 07:45:59 +0000 Subject: [PATCH] Ports/nyancat: Remove patch for printf() workaround Now that the printf() implementation supports dot (`.`) for precision specification, this patch is no longer required. --- .../0002-Use-d-for-time-diff-printing.patch | 22 ------------------- Ports/nyancat/patches/ReadMe.md | 7 ------ 2 files changed, 29 deletions(-) delete mode 100644 Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch diff --git a/Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch b/Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch deleted file mode 100644 index 59a9be9eddd1cf..00000000000000 --- a/Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Gunnar Beutner -Date: Thu, 15 Apr 2021 15:43:18 +0200 -Subject: [PATCH] Use %d for time diff printing - ---- - src/nyancat.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/nyancat.c b/src/nyancat.c -index 537225c..f2965c1 100644 ---- a/src/nyancat.c -+++ b/src/nyancat.c -@@ -901,7 +901,7 @@ int main(int argc, char ** argv) { - * The \033[0m prevents the Apple ][ from flipping everything, but - * makes the whole nyancat less bright on the vt220 - */ -- printf("\033[1;37mYou have nyaned for %0.0f seconds!\033[J\033[0m", diff); -+ printf("\033[1;37mYou have nyaned for %d seconds!\033[J\033[0m", (int)diff); - } - /* Reset the last color so that the escape sequences rewrite */ - last = 0; diff --git a/Ports/nyancat/patches/ReadMe.md b/Ports/nyancat/patches/ReadMe.md index 21bb5e037d5dd9..d3beaa0d6e1f28 100644 --- a/Ports/nyancat/patches/ReadMe.md +++ b/Ports/nyancat/patches/ReadMe.md @@ -3,10 +3,3 @@ ## `0001-Install-to-usr-local.patch` Install to /usr/local - - -## `0002-Use-d-for-time-diff-printing.patch` - -Use %d for time diff printing - -