[pypy-commit] cffi default: Makes no sense to declare fields that we are not using.
arigo
noreply at buildbot.pypy.org
Fri Jul 13 19:54:41 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r636:8f9e654c4238
Date: 2012-07-13 19:54 +0200
http://bitbucket.org/cffi/cffi/changeset/8f9e654c4238/
Log: Makes no sense to declare fields that we are not using.
diff --git a/demo/btrfs-snap.py b/demo/btrfs-snap.py
--- a/demo/btrfs-snap.py
+++ b/demo/btrfs-snap.py
@@ -15,14 +15,10 @@
ffi.cdef("""
#define BTRFS_IOC_SNAP_CREATE_V2 ...
- // needed for some fields
- typedef unsigned long long __u64;
struct btrfs_ioctl_vol_args_v2 {
int64_t fd;
- __u64 transid;
- __u64 flags;
- __u64 unused[4];
- char name[]; ...;
+ char name[];
+ ...;
};
""")
More information about the pypy-commit
mailing list