From: Nicola Pero Date: Thu, 12 Sep 2002 17:29:58 +0000 (+0000) Subject: Tidied up the declaration and usage of nil_method X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=faaa30fe9212db76f5bb5256e4a62b9e7102abbd;p=gcc.git Tidied up the declaration and usage of nil_method From-SVN: r57074 --- diff --git a/libobjc/sendmsg.c b/libobjc/sendmsg.c index 06fc9ba193e..6ef711b50d3 100644 --- a/libobjc/sendmsg.c +++ b/libobjc/sendmsg.c @@ -76,7 +76,7 @@ static id __objc_block_forward (id, SEL, ...); static Method_t search_for_method_in_hierarchy (Class class, SEL sel); Method_t search_for_method_in_list (MethodList_t list, SEL op); -id nil_method (id, SEL, ...); +id nil_method (id, SEL); /* Given a selector, return the proper forwarding implementation. */ __inline__ @@ -197,7 +197,7 @@ objc_msg_lookup (id receiver, SEL op) return result; } else - return nil_method; + return (IMP)nil_method; } IMP @@ -206,7 +206,7 @@ objc_msg_lookup_super (Super_t super, SEL sel) if (super->self) return get_imp (super->class, sel); else - return nil_method; + return (IMP)nil_method; } int method_get_sizeof_arguments (Method *);