path: root/comsat/cfg.c
diff options
authorAlain Magloire <>2001-11-13 14:08:35 +0000
committerAlain Magloire <>2001-11-13 14:08:35 +0000
commit8ccd48fd24ee193c02dd13d65f4bd4981293ddb1 (patch)
tree990bf4e714b8840c9bc85b983f530222fd8fdb64 /comsat/cfg.c
parent9bcb4c72fbd5d9da96da87feaf705d4ed6f8f33f (diff)
Try to use const whenever appropriate to make it clear
that a string should not be modified. Nuke some trailing spaces, thanks to emacs. Reduce the scope of functions with static. GNU ident style for switch() promote a empty line after the break; * comsat/action.c (expand_escape): size and lncount could have been use uninitialized. (expand_escape): const char *cr. (expand_line): cr == "\n\r" make it const. variable i and size unneeded. variable c initialize to zero. (expand_line): obstack_1grow() pass *p instead of c. (defaul_action): const char*. (run_user_action): fprintf () missing argument. (open_rc): const char *filename. * comsat/comsat.c (username): const char *username. (mailbox_path): const prototype. (change_user): const prototype. (notify_user): const prototype. body and header unneeded variables. (find_user): const prototype. * comsat/comsat.h: Prototype updates.
Diffstat (limited to 'comsat/cfg.c')
1 files changed, 4 insertions, 4 deletions
diff --git a/comsat/cfg.c b/comsat/cfg.c
index a1fcdeeaa..a05535877 100644
--- a/comsat/cfg.c
+++ b/comsat/cfg.c
@@ -124,7 +124,7 @@ netdef_parse (char *str)
-read_config (char *config_file)
+read_config (const char *config_file)
FILE *fp;
int line;
@@ -217,9 +217,9 @@ read_config (char *config_file)
tail->next = cur;
tail = cur;
argcv_free (argc, argv);
acl = malloc (sizeof *acl);
if (!acl)
@@ -268,7 +268,7 @@ acl_free (acl_t *acl)
/*NOTE: currently unused. */
+static void
discard_acl (acl_t *mark)
if (mark)

Return to:

Send suggestions and report system problems to the System administrator.