1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../mac-fdisk/no-sys_errlist.patch
5 # Copyright (C) 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- mac-fdisk-0.1.orig/errors.c.vanilla 2020-10-28 16:14:27.886528904 +0100
18 +++ mac-fdisk-0.1.orig/errors.c 2020-10-28 16:15:59.270527821 +0100
23 - if (value > 0 && value < sys_nerr) {
24 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
26 - fprintf(stderr, "\n");
28 + fprintf(stderr, " (%s)\n", strerror(value));
30 fprintf(stderr, "\n");
36 - if (value > 0 && value < sys_nerr) {
37 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
39 - fprintf(stderr, "\n");
41 + fprintf(stderr, " (%s)\n", strerror(value));
43 fprintf(stderr, "\n");