diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-05-26 10:29:58 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-05-26 10:29:58 +0000 |
commit | 6cd4103bc8c266b7a7e1e5a368d535b69d5aba3b (patch) | |
tree | 47b12a29fea4efb47fa1fff07f9de030ef712fe1 /sys-power/nut/files | |
parent | add deprecation notice (#301991, #301228) (diff) | |
download | gentoo-2-6cd4103bc8c266b7a7e1e5a368d535b69d5aba3b.tar.gz gentoo-2-6cd4103bc8c266b7a7e1e5a368d535b69d5aba3b.tar.bz2 gentoo-2-6cd4103bc8c266b7a7e1e5a368d535b69d5aba3b.zip |
Fix DOS line feeds from upstream patch.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-power/nut/files')
-rw-r--r-- | sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch b/sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch index 6ef6ca8e1031..e9a4da8fab2d 100644 --- a/sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch +++ b/sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch @@ -1,21 +1,21 @@ -http://bugs.gentoo.org/show_bug.cgi?id=318937
-http://boxster.ghz.cc/projects/nut/changeset/2407
-
-Index: /trunk/drivers/libhid.c
-===================================================================
---- /trunk/drivers/libhid.c (revision 2336)
-+++ /trunk/drivers/libhid.c (revision 2407)
-@@ -142,5 +142,5 @@
- int id = pData->ReportID;
- int r;
-- unsigned char buf[SMALLBUF];
-+ unsigned char buf[8]; /* Maximum size for low-speed USB devices */
-
- if (rbuf->ts[id] + age > time(NULL)) {
-@@ -470,5 +470,5 @@
- int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize)
- {
-- unsigned char buf[SMALLBUF];
-+ unsigned char buf[8]; /* Maximum size for low-speed USB devices */
- int itemCount = 0;
- int buflen, r, i;
+http://bugs.gentoo.org/show_bug.cgi?id=318937 +http://boxster.ghz.cc/projects/nut/changeset/2407 + +Index: /trunk/drivers/libhid.c +=================================================================== +--- /trunk/drivers/libhid.c (revision 2336) ++++ /trunk/drivers/libhid.c (revision 2407) +@@ -142,5 +142,5 @@ + int id = pData->ReportID; + int r; +- unsigned char buf[SMALLBUF]; ++ unsigned char buf[8]; /* Maximum size for low-speed USB devices */ + + if (rbuf->ts[id] + age > time(NULL)) { +@@ -470,5 +470,5 @@ + int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize) + { +- unsigned char buf[SMALLBUF]; ++ unsigned char buf[8]; /* Maximum size for low-speed USB devices */ + int itemCount = 0; + int buflen, r, i; |