source: ProjectBuilder/projects/afio/pbconf/2.5/afio/01-fedora-patches.all@ 534

Last change on this file since 534 was 534, checked in by Bruno Cornec, 16 years ago

Fedora fixes according to https://bugzilla.redhat.com/show_bug.cgi?id=449037

File size: 1.4 KB
Line 
1diff -urNp afio-2.5.orig/afio.c afio-2.5/afio.c
2--- afio-2.5.orig/afio.c 2003-12-21 03:46:13.000000000 +0530
3+++ afio-2.5/afio.c 2008-08-10 19:48:17.000000000 +0530
4@@ -1585,7 +1585,7 @@ incheckdata (int fd, off_t size, char *n
5 if(compressargs)
6 execvp (compressprog, compress_arg_list);
7 else
8- execlp (compressprog, compressprog, "-d", "-c", 0);
9+ execlp (compressprog, compressprog, "-d", "-c", NULL);
10 fprintf (stderr, "Could not uncompress, errno %d\n", errno);
11 exit(1);
12 break;
13@@ -3004,7 +3004,7 @@ opencontrolscript (char *name)
14 VOID dup (pfd[0]);
15 VOID close (pfd[0]);
16
17- execlp (controlscript, controlscript, label, 0);
18+ execlp (controlscript, controlscript, label, NULL);
19
20 warnarch("Problems running control script:",(off_t)0);
21 warn(controlscript,syserr());
22@@ -3266,7 +3266,7 @@ openotty (name, asb, linkp, ispass, dozf
23 if(compressargs)
24 execvp (compressprog, compress_arg_list);
25 else
26- execlp (compressprog, compressprog, "-d", "-c", 0);
27+ execlp (compressprog, compressprog, "-d", "-c", NULL);
28 fprintf (stderr, "Could not uncompress, errno %d\n", errno);
29 exit (1);
30 }
31@@ -4354,12 +4354,7 @@ fswrite (fd, buf, len)
32 STATIC char *
33 syserr ()
34 {
35- static char msg[40];
36-
37- if (errno > 0 && errno < sys_nerr)
38- return ((char *) sys_errlist[errno]);
39- VOID sprintf (msg, "Unknown error (errno %d)", errno);
40- return (msg);
41+ return strerror (errno);
42 }
43
44 /*
Note: See TracBrowser for help on using the repository browser.