common: indent, not logic change

ulab-next-nosound
Jay Sorg 10 years ago
parent 9e1e6d3c3e
commit a73e66513d

@ -65,8 +65,8 @@ enum logReturns
struct log_config struct log_config
{ {
char* program_name; char *program_name;
char* log_file; char *log_file;
int fd; int fd;
unsigned int log_level; unsigned int log_level;
int enable_syslog; int enable_syslog;
@ -86,7 +86,7 @@ struct log_config
* *
*/ */
enum logReturns DEFAULT_CC enum logReturns DEFAULT_CC
internal_log_start(struct log_config* l_cfg); internal_log_start(struct log_config *l_cfg);
/** /**
* *
@ -95,7 +95,7 @@ internal_log_start(struct log_config* l_cfg);
* *
*/ */
enum logReturns DEFAULT_CC enum logReturns DEFAULT_CC
internal_log_end(struct log_config* l_cfg); internal_log_end(struct log_config *l_cfg);
/** /**
* Converts a log level to a string * Converts a log level to a string
@ -103,7 +103,7 @@ internal_log_end(struct log_config* l_cfg);
* @param str pointer where the string will be stored. * @param str pointer where the string will be stored.
*/ */
void DEFAULT_CC void DEFAULT_CC
internal_log_lvl2str(const enum logLevels lvl, char* str); internal_log_lvl2str(const enum logLevels lvl, char *str);
/** /**
* *
@ -113,7 +113,7 @@ internal_log_lvl2str(const enum logLevels lvl, char* str);
* *
*/ */
enum logLevels DEFAULT_CC enum logLevels DEFAULT_CC
internal_log_text2level(char* s); internal_log_text2level(char *s);
/** /**
* A function that init our struct that holds all state and * A function that init our struct that holds all state and
@ -133,9 +133,9 @@ internalInitAndAllocStruct(void);
* @return * @return
*/ */
enum logReturns DEFAULT_CC enum logReturns DEFAULT_CC
internal_config_read_logging(int file, struct log_config* lc, internal_config_read_logging(int file, struct log_config *lc,
struct list* param_n, struct list *param_n,
struct list* param_v, struct list *param_v,
const char *applicationName); const char *applicationName);
/*End of internal functions*/ /*End of internal functions*/
#endif #endif
@ -147,7 +147,7 @@ internal_config_read_logging(int file, struct log_config* lc,
* @return LOG_STARTUP_OK on success * @return LOG_STARTUP_OK on success
*/ */
enum logReturns DEFAULT_CC enum logReturns DEFAULT_CC
log_start(const char* iniFile, const char* applicationName); log_start(const char *iniFile, const char *applicationName);
/** /**
* An alternative log_start where the caller gives the params directly. * An alternative log_start where the caller gives the params directly.
@ -171,7 +171,7 @@ log_end(void);
* @return * @return
*/ */
enum logReturns DEFAULT_CC enum logReturns DEFAULT_CC
log_message(const enum logLevels lvl, const char* msg, ...); log_message(const enum logLevels lvl, const char *msg, ...);
/** /**
* *
@ -181,7 +181,7 @@ log_message(const enum logLevels lvl, const char* msg, ...);
* @return 0 on success, 1 on failure * @return 0 on success, 1 on failure
* *
*/ */
int APP_CC text2bool(char* s); int APP_CC text2bool(char *s);
/** /**
* This function returns the configured file name for the logfile * This function returns the configured file name for the logfile

Loading…
Cancel
Save