aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2005-10-29 11:56:13 +0100
committerLinus Torvalds <[email protected]>2005-10-29 10:35:08 -0700
commit018a2cdf1e633497bb4f01eb86a7cbffa611776d (patch)
tree515fd2723973f28a738c597d8630526b88650d40 /scripts/basic/split-include.c
parent32b32c2c3566b206988fa30336ec6534759823b5 (diff)
[PATCH] idmouse cleanup and overflow fix
switched to simple_read_from_buffer(), killed broken use of min(). Incidentally, that use of min() had been fixed once, only to be reintroduced in commit 4244f72436ab77c3c29a6447af81734ab3925d85: [PATCH] USB: upgrade of the idmouse driver [snip] - if (count > IMGSIZE - *ppos) - count = IMGSIZE - *ppos; + count = min ((loff_t)count, IMGSIZE - (*ppos)); Note the lovely use of cast to shut the warning about misuse of min() up... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions