Messages in this thread | | | Date | Mon, 9 Oct 2000 02:38:39 +0200 | From | Guest section DW <> | Subject | Re: [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/
| |