mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
style: fix few indentation issues
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
b3e02ce0ba
commit
6817d234ca
3 changed files with 17 additions and 16 deletions
10
src/other.c
10
src/other.c
|
|
@ -71,7 +71,7 @@ extern void _exit();
|
|||
#endif
|
||||
|
||||
#ifndef HAVE___FPENDING
|
||||
static size_t __fpending(FILE * fp)
|
||||
static size_t __fpending(FILE *fp)
|
||||
{
|
||||
return (fp->_p - fp->_bf._base);
|
||||
}
|
||||
|
|
@ -110,12 +110,12 @@ int
|
|||
/* two spaces are very common in lease file, after them
|
||||
* nearly everything differs */
|
||||
if (a[2] != b[2]) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
/* " binding state " == 16 chars, this will skip right
|
||||
* to first difering line. */
|
||||
* to first difering line. */
|
||||
if (17 < len && a[17] != b[17]) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
/* looking good, double check the whole thing... */
|
||||
for (i = 0; a[i] != '\0' && b[i] != '\0'; i++) {
|
||||
|
|
@ -192,7 +192,7 @@ void clean_up(void)
|
|||
free(shared_networks);
|
||||
}
|
||||
|
||||
int close_stream(FILE * stream)
|
||||
int close_stream(FILE *stream)
|
||||
{
|
||||
const int some_pending = (__fpending(stream) != 0);
|
||||
const int prev_fail = (ferror(stream) != 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue