ports/sysutils/syslinux/files/patch-2
Luigi Rizzo 5a3e648d5e Update to 3.83
This is basically PR ports/141166 by Boris Samorodov, which
updates the code to version 3.83 and splits the patches
into smaller chunks to ease future updates.

I have only touched the indentation in one function in patch-mtools_syslinux.c

Submitted-by:	Boris Samorodov
PR:	141166
2009-12-08 10:09:02 +00:00

19 lines
585 B
Text

diff -ubwr ../../work/syslinux-3.72/libinstaller/bin2c.pl ./libinstaller/bin2c.pl
--- ../../work/syslinux-3.72/libinstaller/bin2c.pl 2008-09-26 01:46:02.000000000 +0200
+++ ./libinstaller/bin2c.pl 2008-11-26 13:32:45.000000000 +0100
@@ -27,7 +27,7 @@
$pad = 1 if ($pad < 1);
-printf "unsigned char %s[] = {\n", $table_name;
+printf "static unsigned char _%s[] = {\n", $table_name;
$pos = 0;
$linelen = 8;
@@ -74,5 +74,6 @@
@st = stat STDIN;
printf "\nint %s_mtime = %d;\n", $table_name, $st[9];
+printf "\nunsigned char *%s = _%s;\n", $table_name, $table_name;
exit 0;