Changes of Revision 3
[-] | Changed | cdemu-daemon.spec |
x 1
2 Source0: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2 3 Source1: cdemu-daemon.init.suse 4 Source2: cdemu-daemon.sysconfig 5 +Patch0: cdemu-daemon-1.1.0-fix1.diff 6 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 7 BuildRequires: dbus-1-devel >= 0.90 8 BuildRequires: dbus-1-glib-devel >= 0.70 9
10 11 %prep 12 %setup -q 13 +%patch0 -p2 14 cp -p %{SOURCE1} ./cdemu-daemon.init 15 cp -p %{SOURCE2} ./cdemu-daemon.sysconfig 16 17 |
||
[+] | Added | cdemu-daemon-1.1.0-fix1.diff ^ |
@@ -0,0 +1,30 @@ +--- trunk/cdemu-daemon/src/cdemud-daemon.c 2008/07/25 20:39:19 406 ++++ trunk/cdemu-daemon/src/cdemud-daemon.c 2008/07/25 20:39:47 407 +@@ -30,19 +30,19 @@ + #define BUF_SIZE (512 * (MAX_SECTORS + OTHER_SECTORS)) + + struct vhba_request { +- __u32 tag; +- __u32 lun; ++ guint32 tag; ++ guint32 lun; + #define MAX_COMMAND_SIZE 16 + +- __u8 cdb[MAX_COMMAND_SIZE]; +- __u8 cdb_len; +- __u32 data_len; ++ guint8 cdb[MAX_COMMAND_SIZE]; ++ guint8 cdb_len; ++ guint32 data_len; + }; + + struct vhba_response { +- __u32 tag; +- __u32 status; +- __u32 data_len; ++ guint32 tag; ++ guint32 status; ++ guint32 data_len; + }; + + |