From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Tony Ko Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] what for "static"? Date: Mon, 23 Jul 2001 04:37:00 -0000 Message-id: <3B5C0C79.3FAA574@redhat.com> References: <9860C773D04D834D83FD6FAD00A61E930F2039@gctsemi.gctsemi.com> X-SW-Source: 2001-07/msg00682.html Tony Ko wrote: > > hi. > look, " static void eth_drv_send(struct ifnet *);" > this is prototype declaration on eth_drv.c. > > why is static used on prototype declaration? Because it is a static function! It needs to be declared if it is used before it is defined. Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine Come to the Red Hat TechWorld open source conference in Brussels! Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/