summaryrefslogtreecommitdiff
path: root/comsat/comsat.h
diff options
context:
space:
mode:
authorAlain Magloire <alainm@gnu.org>2001-11-13 14:08:35 +0000
committerAlain Magloire <alainm@gnu.org>2001-11-13 14:08:35 +0000
commit8ccd48fd24ee193c02dd13d65f4bd4981293ddb1 (patch)
tree990bf4e714b8840c9bc85b983f530222fd8fdb64 /comsat/comsat.h
parent9bcb4c72fbd5d9da96da87feaf705d4ed6f8f33f (diff)
downloadmailutils-8ccd48fd24ee193c02dd13d65f4bd4981293ddb1.tar.gz
mailutils-8ccd48fd24ee193c02dd13d65f4bd4981293ddb1.tar.bz2
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/comsat.h')
-rw-r--r--comsat/comsat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/comsat/comsat.h b/comsat/comsat.h
index e74981bf1..1c1f8a3b7 100644
--- a/comsat/comsat.h
+++ b/comsat/comsat.h
@@ -59,9 +59,9 @@ extern time_t request_control_interval;
extern time_t overflow_control_interval;
extern time_t overflow_delay_time;
extern int maxlines;
-extern char *username;
+extern const char *username;
extern char hostname[];
-extern void read_config (char *config_file);
+extern void read_config (const char *config_file);
int acl_match (struct sockaddr_in *sa_in);
-void run_user_action (FILE *tty, char *cr, message_t msg);
+void run_user_action (FILE *tty, const char *cr, message_t msg);

Return to:

Send suggestions and report system problems to the System administrator.