Coding Style

We use a code style similar to the linux kernel. Use tabs to indent and spaces to align/wrap beyond the indentation level.

We don't try to guarantee completely robust and problem free behavior in cases where the caller or system isn't behaving. We consider these to be outside of our control:

These unexpected conditions indicate a bug either in adcli or in the system. All bets are off once this occurs.

Use the return_val_xxx() precondition macros to check for unexpected conditions.