File: 07_ustat.patch

package info (click to toggle)
libexplain 1.4.D001-17
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,248 kB
  • sloc: ansic: 156,043; makefile: 47,892; sh: 16,304; yacc: 1,898; awk: 245
file content (37 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Do not require fully defined struct ustat
 Fixes ustat related FTBFS on adm64. Since explain_errno_ustat does not write to
 the data argument, it's pointless to try and allocate any memory for it anyway.
Author: James Cowgill <jcowgill@debian.org>
Bug-Debian: https://bugs.debian.org/770819
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/explain/syscall/ustat.c
+++ b/explain/syscall/ustat.c
@@ -30,26 +30,15 @@
 #include <explain/syscall/ustat.h>
 
 
-#ifndef HAVE_USTAT
-
-struct ustat
-{
-    int dummy;
-};
-
-#endif
-
-
 void
 explain_syscall_ustat(int errnum, int argc, char **argv)
 {
     dev_t           dev;
-    struct ustat    ubuf;
     struct ustat    *ubuf_p;
     struct stat     st;
 
     dev = 0;
-    ubuf_p = &ubuf;
+    ubuf_p = NULL;
     switch (argc)
     {
     case 2: