From 76939ad9d19a8e2895932734a5c9693e894acd15 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 9 Feb 2008 14:17:21 +0100 Subject: [PATCH] More trivial cleanups. --- sha1.c | 10 ++++++++-- stdin.c | 16 ++++++++-------- stdout.c | 20 ++++++++++---------- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/sha1.c b/sha1.c index 449400c1..af4dbc65 100644 --- a/sha1.c +++ b/sha1.c @@ -1,8 +1,14 @@ -#include "para.h" -#include +/* + * Copyright (C) 2007-2008 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ /** \file sha1.c Secure Hash Algorithm, provided by openssl. */ +#include "para.h" +#include + /** * Compute the sha1 hash. * diff --git a/stdin.c b/stdin.c index afbe35f8..4e567008 100644 --- a/stdin.c +++ b/stdin.c @@ -1,10 +1,10 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2006-2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ -/** \file stdin.c functions that deal with reading from stdin */ +/** \file stdin.c Functions that deal with reading from stdin. */ #include /* readdir() */ #include @@ -19,10 +19,10 @@ #include "stdin.h" /** - * the pre_select function of the stdin task + * The pre_select function of the stdin task. * - * \param s the scheduler this task was registered to - * \param t the task structure of the stdin task + * \param s The scheduler this task was registered to. + * \param t The task structure of the stdin task. * * This function is always successful. If there is space left in the * buffer of the stdin task, it adds \p STDIN_FILENO to the read fd set @@ -46,10 +46,10 @@ static void stdin_default_event_handler(struct task *t) } /** - * the post select function of the stdin task + * The post select function of the stdin task. * - * \param s the scheduler this task was registered to - * \param t the task structure of the stdin task + * \param s The scheduler this task was registered to. + * \param t The task structure of the stdin task. * * This function checks if \p STDIN_FILENO was included by in the read fd set * of \a s during the previous pre_select call. If yes, and \p STDIN_FILENO diff --git a/stdout.c b/stdout.c index 2215f998..a192f2be 100644 --- a/stdout.c +++ b/stdout.c @@ -1,10 +1,10 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2006-2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ -/** \file stdout.c functions that deal with writing to stdout */ +/** \file stdout.c Functions that deal with writing to stdout. */ #include /* readdir() */ #include @@ -18,10 +18,10 @@ #include "stdout.h" /** - * the pre_select function of the stdout task + * The pre_select function of the stdout task. * - * \param s the scheduler this task was registered to - * \param t the task structure of the stdout task + * \param s The scheduler this task was registered to. + * \param t The task structure of the stdout task. * * This function is always successful. If there is data available in the input * buffer, it adds \p STDOUT_FILENO to the write fd set of \a s. @@ -45,10 +45,10 @@ static void stdout_pre_select(struct sched *s, struct task *t) } /** - * the post select function of the stdout task + * The post select function of the stdout task. * - * \param s the scheduler this task was registered to - * \param t the task structure of the stdout task + * \param s The scheduler this task was registered to. + * \param t The task structure of the stdout task. * * This function checks if \p STDOUT_FILENO was included by in the write fd set * of \a s during the previous pre_select call. If yes, and \p STDOUT_FILENO @@ -85,9 +85,9 @@ static void stdout_default_event_handler(struct task *t) } /** - * initialize a stdout task structure with default values + * Initialize a stdout task structure with default values. * - * \param sot the stdout task structure + * \param sot The stdout task structure. * * This fills in the pre/post select function poinzters of the task structure * given by \a sot. It also sets up a default error handler which unregisters -- 2.39.5