Remove generated files

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
.gitignore: Add

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Strip trailing whitespace

This patch has been generated by running the following command:
for f in srp_daemon/*[ch]; do
  sed -i.tmp -e 's/[ '"$(printf '\t')"']*$//' $f
done

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Fix indentation

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Declare recalc() static

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Declare get_lid() static

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Constify srpd_sys_read_string() arguments

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
srp_daemon.c: Remove an unused variable

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Makefile.am: Enable more compiler warnings

Enable -Wextra but leave -Wsign-compare and -Wunused-parameter
disabled.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Makefile.am: Build ibsrpdm with -fno-strict-aliasing

When building ibsrpdm gcc reports that some code might break due
to optimizations based on strict aliasing. Hence disable these
optimizations.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
srp_daemon.h: Remove the unused structure srp_sa_guid_info_rec

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Introduce STATIC_ASSERT()

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Check structure sizes during compilation

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Make srp_sa_node_rec size 108 bytes

Avoid that gcc adds four padding bytes at the end of struct
srp_sa_node_rec.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
srp_daemon.h: Reduce performance impact of __attribute__((packed))

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Spelling fixes

Fix spelling errors in printed messages and source code comments.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Use NULL instead of (void *)0

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Remove superfluous casts

Casting a pointer to (void *) when the called function expects an
argument of type void * is not necessary.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Eliminate a cast

Change the data type of the 'status' variable such that no cast is
necessary when calling pthread_join().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Use exit values 0 (normal exit) and 1 (failure)

Signed-off-by: Bart Van Assche <bvanassche@acm.org>