lkml.org 
[lkml]   [2000]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH correction] Re: 2.4.0test - uid_hash_find()
On Mon, Oct 09, 2000 at 01:45:46AM -0200, Dan Aloni wrote:
>
> I noticed I forgot a ; somewhere there. Here's the right patch:
>
> --- linux-2.4.0-test9/kernel/user.c Mon Oct 9 01:37:35 2000
> +++ linux.vanilla/kernel/user.c Sun Oct 8 22:33:55 2000
> @@ -51,22 +51,18 @@
> *up->pprev = up->next;
> }
>
> -static inline struct user_struct *uid_hash_find(uid_t uid, unsigned int hashent)
> +static inline struct user_struct *uid_hash_find(unsigned short uid, unsigned int hashent)
> {
> - struct user_struct *up, *next;
> + struct user_struct *up;
>
> - next = uidhash[hashent];
> - for (;;) {
...
> + for (up = uidhash[hashent]; up ; up = up->next)

Your labeling is confusing. linux.vanilla? linux-2.4.0-test9?
Which is the original version?
The --- is most recent.

It looks like you did s/unsigned short/uid_t/ in the
original tree instead of the patched one.

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

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.383 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site