Various Doxygen-related fixes in libpayload (trivial).
- Drop all '@brief's, they're not needed as we use JAVADOC_AUTOBRIEF. The first sentence of every description will be treated as the '@brief' automatically. - Also, put all documentation/descriptions on top of the Doxygen-comments, and put the '@foo' keywords at the bottom of the comments for consistency. - Change comments for SEEK_SET/SEEK_CUR/SEEK_END from '/**@def' to '/**<' in order to make them appear in the output. - Drop all explicit '@struct' lines (which are optional; Doxygen will figure out that it's a struct if the comment is right before the struct). - Fix various typos, whitespace issues, etc. - Fix incorrect @param variable names, e.g. change '@param n foobar' to '@param s foobar' if the variable is named 's'. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3555 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -27,8 +27,9 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/** @file libc/time.c
|
||||
* @brief General Time Functions
|
||||
/**
|
||||
* @file libc/time.c
|
||||
* General time functions
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
@@ -115,18 +116,18 @@ static void gettimeofday_init(void)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Return the current time broken into a timeval structure
|
||||
* @param tv A pointer to a timeval structure
|
||||
* @param tz Added for compatability - not used
|
||||
* @return 0 for success
|
||||
* Return the current time broken into a timeval structure.
|
||||
*
|
||||
* @param tv A pointer to a timeval structure.
|
||||
* @param tz Added for compatability - not used.
|
||||
* @return 0 for success (this function cannot return non-zero currently).
|
||||
*/
|
||||
int gettimeofday(struct timeval *tv, void *tz)
|
||||
{
|
||||
/* Call the gtod init when we need it - this keeps
|
||||
the code from being included in the binary if we don't
|
||||
need it
|
||||
*/
|
||||
|
||||
/*
|
||||
* Call the gtod init when we need it - this keeps the code from
|
||||
* being included in the binary if we don't need it.
|
||||
*/
|
||||
if (!clock.ticks)
|
||||
gettimeofday_init();
|
||||
|
||||
|
Reference in New Issue
Block a user