Author: biurrun Date: Wed Nov 25 14:37:17 2009 New Revision: 1778 Log: Mark functions only used in management.c as static and remove their prototypes from management.h. Modified: trunk/pairing/management.c trunk/pairing/management.h Modified: trunk/pairing/management.c ============================================================================== --- trunk/pairing/management.c Wed Nov 25 14:35:41 2009 (r1777) +++ trunk/pairing/management.c Wed Nov 25 14:37:17 2009 (r1778) @@ -317,7 +317,7 @@ * * @return The corresponding userlist */ -pisa_userlist *pisa_userlist_build(const char *section) +static pisa_userlist *pisa_userlist_build(const char *section) { assert(section != NULL); @@ -383,7 +383,7 @@ * * @param argv pointer to the array of command arguments */ -void pisa_mgmt_print_usage(char **argv) +static void pisa_mgmt_print_usage(char **argv) { PISA_ERROR("\nUSAGE:\n" "%s -l <0|1> [-u <username>|-h <hit>]\n" @@ -446,8 +446,10 @@ * @return 1 if parsing successful and required arguments are present * @return 0 otherwise (recommend exit program) */ -int pisa_mgmt_parse_options(int argc, char *argv[], pisa_userhitlist_entry *new_entry, - management_conf *mconf, struct options *options) +static int pisa_mgmt_parse_options(int argc, char *argv[], + pisa_userhitlist_entry *new_entry, + management_conf *mconf, + struct options *options) { int sw; int temp; @@ -698,7 +700,8 @@ * @param entry Pointer to the hitlistEntry which should be printed * @param list_mode The mode in which the entry is printed */ -void pisa_hitlist_entry_print(pisa_hitlist_entry *entry, enum list_mode list_mode) +static void pisa_hitlist_entry_print(pisa_hitlist_entry *entry, + enum list_mode list_mode) { if (entry != NULL) { @@ -731,7 +734,8 @@ * @param entry Pointer to the hitlistEntry which should be printed * @param list_mode The mode in which the entry is printed */ -void pisa_userlist_entry_print(pisa_userlist_entry *entry, enum list_mode list_mode) +static void pisa_userlist_entry_print(pisa_userlist_entry *entry, + enum list_mode list_mode) { if (entry != NULL) { @@ -763,7 +767,8 @@ * @param entry Pointer to the user_hit_list_entry which should be printed * @param list_mode The mode in which the entry is printed */ -void pisa_userhitlist_entry_print(pisa_userhitlist_entry *entry, enum list_mode list_mode) +static void pisa_userhitlist_entry_print(pisa_userhitlist_entry *entry, + enum list_mode list_mode) { if (entry != NULL) { @@ -798,7 +803,7 @@ * written to the configuration file * @return 0 on failure; 1 on success; -1 on write error */ -int pisa_mgmt_users_config_write(pisa_userhitlist_entry *new_entry) +static int pisa_mgmt_users_config_write(pisa_userhitlist_entry *new_entry) { pisa_userlist *ul; pisa_userlist_entry *entry; @@ -939,7 +944,7 @@ * * @return 0-> Error, 1-> Success, -1 -> Write error */ -int pisa_mgmt_remove_userlist_entry_by_hit(char *hit) +static int pisa_mgmt_remove_userlist_entry_by_hit(char *hit) { pisa_userlist *ul; Modified: trunk/pairing/management.h ============================================================================== --- trunk/pairing/management.h Wed Nov 25 14:35:41 2009 (r1777) +++ trunk/pairing/management.h Wed Nov 25 14:37:17 2009 (r1778) @@ -99,14 +99,4 @@ char authorizedcfgfile[MAX_PATH]; } management_conf; -void pisa_mgmt_print_usage(char *argv[]); -int pisa_mgmt_parse_options(int argc, char *argv[],pisa_userhitlist_entry *new_entry, - management_conf *mconf,struct options *options); -pisa_userlist *pisa_userlist_build(const char *section); -void pisa_userlist_entry_print(pisa_userlist_entry *entry,enum list_mode list_mode); -void pisa_hitlist_entry_print(pisa_hitlist_entry *entry,enum list_mode list_mode); -void pisa_userhitlist_entry_print(pisa_userhitlist_entry *entry,enum list_mode list_mode); -int pisa_mgmt_users_config_write(pisa_userhitlist_entry *new_entry); -int pisa_mgmt_remove_userlist_entry_by_hit(char *hit); - #endif /* PISA_MANAGEMENT_H */