summaryrefslogtreecommitdiff
path: root/package/ympd/patches/patch-htdocs_mkdata_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-03-30 00:35:45 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-03-30 00:36:01 +0200
commitcf30b42b711829a86e994060ab72726b18209410 (patch)
tree898ebd262920c3a6187c0f9571a8000e6302caa3 /package/ympd/patches/patch-htdocs_mkdata_c
parent80d8eb9db04b4f9f3eb01cfe6d1e44670a932316 (diff)
update to latest development version, fetch via git
Diffstat (limited to 'package/ympd/patches/patch-htdocs_mkdata_c')
-rw-r--r--package/ympd/patches/patch-htdocs_mkdata_c35
1 files changed, 0 insertions, 35 deletions
diff --git a/package/ympd/patches/patch-htdocs_mkdata_c b/package/ympd/patches/patch-htdocs_mkdata_c
deleted file mode 100644
index e285e5dc3..000000000
--- a/package/ympd/patches/patch-htdocs_mkdata_c
+++ /dev/null
@@ -1,35 +0,0 @@
---- ympd-1.2.2.orig/htdocs/mkdata.c 2014-09-28 13:39:27.000000000 +0200
-+++ ympd-1.2.2/htdocs/mkdata.c 2014-10-05 08:52:52.000000000 +0200
-@@ -7,7 +7,6 @@
-
- #include <stdlib.h>
- #include <stdio.h>
--#include <error.h>
- #include <errno.h>
- #include <string.h>
-
-@@ -58,16 +57,20 @@ int main(int argc, char *argv[])
- int i, j, buf;
- FILE *fd;
-
-- if(argc <= 1)
-- error(EXIT_FAILURE, 0, "Usage: ./%s <this_file> <file1> [file2, ...] > embedded_data.c", argv[0]);
-+ if(argc <= 1) {
-+ printf("Usage: ./%s <this_file> <file1> [file2, ...] > embedded_data.c", argv[0]);
-+ exit(EXIT_FAILURE);
-+ }
-
- for(i = 1; i < argc; i++)
- {
- printf("static const unsigned char v%d[] = {", i);
-
- fd = fopen(argv[i], "r");
-- if(!fd)
-- error(EXIT_FAILURE, errno, "Failed open file %s", argv[i]);
-+ if(!fd) {
-+ printf("Failed open file %s", argv[i]);
-+ exit(EXIT_FAILURE);
-+ }
-
- j = 0;
- while((buf = fgetc(fd)) != EOF)