proAdhoc: Normalize whitespace

Moves the indentation to be inline with the project.
proAdhoc: Inline declare loop variables, minor cleanup
proAdhoc: Remove unnecessary struct typedefs.

Also removed the PACK macro. push and pop macros are supported in GCC and clang.
proAdhoc: Make some functions return boolean values.

Also shorten validNetworkName().