lkml.org 
[lkml]   [2007]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] Maple bus support for the SEGA Dreamcast - Dreamcast keyboard support
On 9/10/07, Adrian McMenamin <lkmladrian@gmail.com> wrote:
> +
> + for (i = 0; i < NR_SCANCODES; i++)
> + memcpy(kbd->keycode + i * sizeof(unsigned char), dc_kbd_keycode + i
> * sizeof(unsigned char),
> + sizeof(unsigned char));

Ahem... That's not what I had in mind when I asked for memcpy. How about:

memcpy(kbd->keycode, dc_kbd_keycode, sizeof(kbd->keycode);

?

Thanks.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-11 07:29    [W:0.034 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site