bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 40/68] kern/syscall_subr.c: remove forward declaration


From: Ivan Shmakov
Subject: Re: [PATCH 40/68] kern/syscall_subr.c: remove forward declaration
Date: Fri, 29 Nov 2013 22:46:57 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>>> Marin Ramesa <mpr@hi.t-com.hr> writes:

[…]

 > --- a/kern/syscall_subr.h
 > +++ b/kern/syscall_subr.h
 > @@ -37,5 +37,6 @@ extern int thread_switch(mach_port_t, int, 
 > mach_msg_timeout_t);
 >  extern void thread_depress_timeout(thread_t);
 >  extern kern_return_t thread_depress_abort(thread_t);
 >  extern void mach_print(const char *);
 > +void thread_depress_priority(thread_t thread, mach_msg_timeout_t 
 > depress_time);

        Shouldn’t it be declared as ‘extern’ just as well?  (And the
        argument names are unnecessary, BTW.)  Also, it may make sense
        to “pair” it with thread_depress_timeout (), like:

 > @@ -37,5 +37,6 @@ extern int thread_switch(mach_port_t, int, 
 > mach_msg_timeout_t);
 >  extern void thread_depress_timeout(thread_t);
 > +extern void thread_depress_priority(thread_t, mach_msg_timeout_t);
 >  extern kern_return_t thread_depress_abort(thread_t);

-- 
FSF associate member #7257



reply via email to

[Prev in Thread] Current Thread [Next in Thread]