Re: [dev] fsbm

From: Calvin Morrison <mutantturkey_AT_gmail.com>
Date: Thu, 6 Nov 2014 23:41:23 -0500

many of these issues have been fixed. some I did not fix, yet, some
will not be fixed. Thank you for your input, may someone find this
useful

On 6 November 2014 12:05, Dimitris Papastamos <sin_AT_2f30.org> wrote:
> Some more feedback:
>
> * Use a more sensible formatting style (look at the suckless.org
> projects or style(9) in OpenBSD.)
> * If a function is not intended to accept any arguments use void.
>
> Instead of:
> void foo();
> Use:
> void foo(void);
> * Use BUFSIZ wherever possible instead of hardcoded values.
> * Consider using the functions from err.h instead of the
> fprintf() + strerror() + exit() combination. As an alternative, you
> can grab the eprintf() + friends from sbase.
> * No need to include the type of the variable in the name, so things
> like "statistics_string" look weird.
> * Use strtonum() or estrtol() from sbase instead of atoi().
> * Errors should to go to stderr.
> * Don't use EXIT_{SUCCESS,FAILURE} - just use 0 and 1. I know this
> is debatable but saves typing and verbosity.
> * Fix your indentation!
>
Received on Fri Nov 07 2014 - 05:41:23 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 07 2014 - 05:48:08 CET