From 9f1661eb7a68c26861d1fb03864629052202b74e Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 5 Nov 1995 21:25:07 +0000 Subject: [PATCH] comments in endif git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@191 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/popper/pop_dele.c | 4 ++-- appl/popper/pop_dropcopy.c | 6 +++--- appl/popper/pop_dropinfo.c | 8 ++++---- appl/popper/pop_get_command.c | 8 ++++---- appl/popper/pop_get_subcommand.c | 2 +- appl/popper/pop_init.c | 6 +++--- appl/popper/pop_last.c | 2 +- appl/popper/pop_list.c | 2 +- appl/popper/pop_log.c | 2 +- appl/popper/pop_lower.c | 2 +- appl/popper/pop_msg.c | 4 ++-- appl/popper/pop_parse.c | 2 +- appl/popper/pop_pass.c | 2 +- appl/popper/pop_quit.c | 2 +- appl/popper/pop_rset.c | 2 +- appl/popper/pop_send.c | 4 ++-- appl/popper/pop_stat.c | 4 ++-- appl/popper/pop_updt.c | 12 ++++++------ appl/popper/pop_user.c | 2 +- appl/popper/pop_xmit.c | 12 ++++++------ appl/popper/pop_xtnd.c | 2 +- 21 files changed, 45 insertions(+), 45 deletions(-) diff --git a/appl/popper/pop_dele.c b/appl/popper/pop_dele.c index 808e555fe..67bfca81a 100644 --- a/appl/popper/pop_dele.c +++ b/appl/popper/pop_dele.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_dele.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -45,7 +45,7 @@ POP * p; if(p->debug) pop_log(p,POP_DEBUG,"Deleting message %u at offset %u of length %u\n", mp->number,mp->offset,mp->length); -#endif DEBUG +#endif /* DEBUG */ /* Update the messages_deleted and bytes_deleted counters */ p->msgs_deleted++; diff --git a/appl/popper/pop_dropcopy.c b/appl/popper/pop_dropcopy.c index 85ab4ef48..0cffc0b09 100644 --- a/appl/popper/pop_dropcopy.c +++ b/appl/popper/pop_dropcopy.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_dropcopy.c 2.6 2.6 4/3/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -49,7 +49,7 @@ struct passwd * pwp; if(p->debug) pop_log(p,POP_DEBUG,"Creating temporary maildrop '%s'", p->temp_drop); -#endif DEBUG +#endif /* DEBUG */ /* Here we work to make sure the user doesn't cause us to remove or * write over existing files by limiting how much work we do while @@ -89,7 +89,7 @@ struct passwd * pwp; } #ifdef DEBUG if(p->debug)pop_log(p,POP_DEBUG,"uid = %d, gid = %d",getuid(),getgid()); -#endif DEBUG +#endif /* DEBUG */ /* Open for append, this solves the crash recovery problem */ if ((dfd = open(p->temp_drop,O_RDWR|O_APPEND|O_CREAT,0600)) == -1){ diff --git a/appl/popper/pop_dropinfo.c b/appl/popper/pop_dropinfo.c index 4eedd99b5..412780b6d 100644 --- a/appl/popper/pop_dropinfo.c +++ b/appl/popper/pop_dropinfo.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_dropinfo.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -80,7 +80,7 @@ POP * p; pop_log(p,POP_DEBUG, "Msg %d at offset %d is %d octets long and has %u lines.", mp->number,mp->offset,mp->length,mp->lines); -#endif DEBUG +#endif /* DEBUG */ ++mp; mp->number = msg_num; mp->length = 0; @@ -91,7 +91,7 @@ POP * p; #ifdef DEBUG if(p->debug) pop_log(p,POP_DEBUG, "Msg %d being added to list", mp->number); -#endif DEBUG +#endif /* DEBUG */ } mp->length += nchar; p->drop_size += nchar; @@ -107,7 +107,7 @@ POP * p; "Msg %d at offset %d is %d octets long and has %u lines.", mp->number,mp->offset,mp->length,mp->lines); } -#endif DEBUG +#endif /* DEBUG */ return(POP_SUCCESS); } diff --git a/appl/popper/pop_get_command.c b/appl/popper/pop_get_command.c index afeb8d81a..32181632a 100644 --- a/appl/popper/pop_get_command.c +++ b/appl/popper/pop_get_command.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_get_command.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -23,7 +23,7 @@ static state_table states[] = { auth2, "pass", 1, 1, pop_pass, {auth1, trans}, #ifdef RPOP auth2, "rpop", 1, 1, pop_rpop, {auth1, trans}, -#endif RPOP +#endif /* RPOP */ auth1, "quit", 0, 0, pop_quit, {halt, halt}, auth2, "quit", 0, 0, pop_quit, {halt, halt}, trans, "stat", 0, 0, pop_stat, {trans, trans}, @@ -50,7 +50,7 @@ register char * mp; /* Pointer to unparsed line /* Save a copy of the original client line */ #ifdef DEBUG if(p->debug) strcpy (buf,mp); -#endif DEBUG +#endif /* DEBUG */ /* Parse the message into the parameter array */ if ((p->parm_count = pop_parse(p,mp)) < 0) return(NULL); @@ -66,7 +66,7 @@ register char * mp; /* Pointer to unparsed line pop_log(p,POP_DEBUG,"Received: \"%s\"",buf); } } -#endif DEBUG +#endif /* DEBUG */ /* Search for the POP command in the command/state table */ for (s = states; s->command; s++) { diff --git a/appl/popper/pop_get_subcommand.c b/appl/popper/pop_get_subcommand.c index c34e9765d..d531260bf 100644 --- a/appl/popper/pop_get_subcommand.c +++ b/appl/popper/pop_get_subcommand.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_get_subcommand.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_init.c b/appl/popper/pop_init.c index ed4b3229e..6d14d6296 100644 --- a/appl/popper/pop_init.c +++ b/appl/popper/pop_init.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_init.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -160,7 +160,7 @@ char ** argmessage; p->client = p->ipaddr; } } -#endif BIND43 +#endif /* BIND43 */ } /* Create input file stream for TCP/IP communication */ @@ -188,7 +188,7 @@ char ** argmessage; trace_file_name); else if (p->debug) pop_log(p,POP_PRIORITY,"Debugging turned on"); -#endif DEBUG +#endif /* DEBUG */ return(authenticate(p, &cs)); } diff --git a/appl/popper/pop_last.c b/appl/popper/pop_last.c index a8b0e274c..1db90e15e 100644 --- a/appl/popper/pop_last.c +++ b/appl/popper/pop_last.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_last.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_list.c b/appl/popper/pop_list.c index a162461d7..06931ebf1 100644 --- a/appl/popper/pop_list.c +++ b/appl/popper/pop_list.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_list.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_log.c b/appl/popper/pop_log.c index b1d9da0f0..2084596d9 100644 --- a/appl/popper/pop_log.c +++ b/appl/popper/pop_log.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_log.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_lower.c b/appl/popper/pop_lower.c index 531433893..8c9e3922f 100644 --- a/appl/popper/pop_lower.c +++ b/appl/popper/pop_lower.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_lower.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_msg.c b/appl/popper/pop_msg.c index e709ffbc7..0b5e4bb02 100644 --- a/appl/popper/pop_msg.c +++ b/appl/popper/pop_msg.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_msg.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -79,7 +79,7 @@ va_dcl #ifdef DEBUG if (p->debug && stat == POP_SUCCESS) pop_log(p,POP_DEBUG,"%s",message); -#endif DEBUG +#endif /* DEBUG */ /* Log the message if a failure occurred */ if (stat != POP_SUCCESS) diff --git a/appl/popper/pop_parse.c b/appl/popper/pop_parse.c index b0581de20..0915b5578 100644 --- a/appl/popper/pop_parse.c +++ b/appl/popper/pop_parse.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_parse.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_pass.c b/appl/popper/pop_pass.c index f3ba110a7..0c2ad5cc4 100644 --- a/appl/popper/pop_pass.c +++ b/appl/popper/pop_pass.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_pass.c 2.3 2.3 4/2/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_quit.c b/appl/popper/pop_quit.c index b379b5071..907bc9cdf 100644 --- a/appl/popper/pop_quit.c +++ b/appl/popper/pop_quit.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_quit.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_rset.c b/appl/popper/pop_rset.c index 344d390ba..7ce3d1cbf 100644 --- a/appl/popper/pop_rset.c +++ b/appl/popper/pop_rset.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_rset.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_send.c b/appl/popper/pop_send.c index 80e55bdf6..a760536a3 100644 --- a/appl/popper/pop_send.c +++ b/appl/popper/pop_send.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_send.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -143,7 +143,7 @@ char * buffer; #ifdef DEBUG if(p->debug)pop_log(p,POP_DEBUG,"Sending line \"%s\"",buffer); -#endif DEBUG +#endif /* DEBUG */ /* Put a if a newline was removed from the buffer */ if (bp) (void)fputs ("\r\n",p->output); diff --git a/appl/popper/pop_stat.c b/appl/popper/pop_stat.c index 9daa24fe0..5fa7fa595 100644 --- a/appl/popper/pop_stat.c +++ b/appl/popper/pop_stat.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_stat.c 2.2 2.2 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -22,7 +22,7 @@ POP * p; { #ifdef DEBUG if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%d octets).",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted); -#endif DEBUG +#endif /* DEBUG */ return (pop_msg (p,POP_SUCCESS, "%u %u",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted)); } diff --git a/appl/popper/pop_updt.c b/appl/popper/pop_updt.c index e9bb50966..b8300870d 100644 --- a/appl/popper/pop_updt.c +++ b/appl/popper/pop_updt.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_updt.c 2.3 2.3 3/20/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -52,7 +52,7 @@ POP * p; pop_log(p,POP_DEBUG,"Performing maildrop update..."); pop_log(p,POP_DEBUG,"Checking to see if all messages were deleted"); } -#endif DEBUG +#endif /* DEBUG */ if (p->msgs_deleted == p->msg_count) { /* Truncate before close, to avoid race condition, DO NOT UNLINK! @@ -65,7 +65,7 @@ POP * p; #ifdef DEBUG if (p->debug) pop_log(p,POP_DEBUG,"Opening mail drop \"%s\"",p->drop_name); -#endif DEBUG +#endif /* DEBUG */ /* Open the user's real maildrop */ if ((mfd = open(p->drop_name,O_RDWR|O_CREAT,0600)) == -1 || @@ -110,7 +110,7 @@ POP * p; if (p->debug) pop_log(p,POP_DEBUG,"Creating new maildrop \"%s\" from \"%s\"", p->drop_name,p->temp_drop); -#endif DEBUG +#endif /* DEBUG */ for (msg_num = 0; msg_num < p->msg_count; ++msg_num) { @@ -124,7 +124,7 @@ POP * p; if(p->debug) pop_log(p,POP_DEBUG, "Message %d flagged for deletion.",mp->number); -#endif DEBUG +#endif /* DEBUG */ continue; } @@ -133,7 +133,7 @@ POP * p; #ifdef DEBUG if(p->debug) pop_log(p,POP_DEBUG,"Copying message %d.",mp->number); -#endif DEBUG +#endif /* DEBUG */ for(status_written = doing_body = 0 ; fgets(buffer,MAXMSGLINELEN,p->drop);) { diff --git a/appl/popper/pop_user.c b/appl/popper/pop_user.c index e70aaa7f9..2fa0a24cc 100644 --- a/appl/popper/pop_user.c +++ b/appl/popper/pop_user.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_user.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include diff --git a/appl/popper/pop_xmit.c b/appl/popper/pop_xmit.c index 6714d2970..4c36828af 100644 --- a/appl/popper/pop_xmit.c +++ b/appl/popper/pop_xmit.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_xmit.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include @@ -43,7 +43,7 @@ POP * p; pop_log(p,POP_DEBUG, "Creating temporary file for sending a mail message \"%s\"\n", temp_xmit); -#endif DEBUG +#endif /* DEBUG */ if ((tmp = fopen(temp_xmit,"w+")) == NULL) return (pop_msg(p,POP_FAILURE, "Unable to create temporary message file \"%s\", errno = %d", @@ -55,12 +55,12 @@ POP * p; /* Receive the message */ #ifdef DEBUG if(p->debug)pop_log(p,POP_DEBUG,"Receiving mail message"); -#endif DEBUG +#endif /* DEBUG */ while (fgets(buffer,MAXLINELEN,p->input)){ /* Look for initial period */ #ifdef DEBUG if(p->debug)pop_log(p,POP_DEBUG,"Receiving: \"%s\"",buffer); -#endif DEBUG +#endif /* DEBUG */ if (*buffer == '.') { /* Exit on end of message */ if (strcmp(buffer,".\r\n") == 0) break; @@ -71,7 +71,7 @@ POP * p; #ifdef DEBUG if(p->debug)pop_log(p,POP_DEBUG,"Forking for \"%s\"",MAIL_COMMAND); -#endif DEBUG +#endif /* DEBUG */ /* Send the message */ switch (pid = fork()) { case 0: @@ -84,7 +84,7 @@ POP * p; case -1: #ifdef DEBUG if (!p->debug) (void)unlink (temp_xmit); -#endif DEBUG +#endif /* DEBUG */ return (pop_msg(p,POP_FAILURE, "Unable to execute \"%s\"",MAIL_COMMAND)); default: diff --git a/appl/popper/pop_xtnd.c b/appl/popper/pop_xtnd.c index fcc01094b..03afe7f29 100644 --- a/appl/popper/pop_xtnd.c +++ b/appl/popper/pop_xtnd.c @@ -7,7 +7,7 @@ #ifndef lint static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char SccsId[] = "@(#)@(#)pop_xtnd.c 2.1 2.1 3/18/91"; -#endif not lint +#endif /* not lint */ #include #include