Deleted Added
full compact
praliases.c (203004) praliases.c (249729)
1/*
2 * Copyright (c) 1998-2001, 2008 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1983 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set

--- 6 unchanged lines hidden (view full) ---

15
16SM_IDSTR(copyright,
17"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\
18 All rights reserved.\n\
19 Copyright (c) 1983 Eric P. Allman. All rights reserved.\n\
20 Copyright (c) 1988, 1993\n\
21 The Regents of the University of California. All rights reserved.\n")
22
1/*
2 * Copyright (c) 1998-2001, 2008 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1983 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set

--- 6 unchanged lines hidden (view full) ---

15
16SM_IDSTR(copyright,
17"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\
18 All rights reserved.\n\
19 Copyright (c) 1983 Eric P. Allman. All rights reserved.\n\
20 Copyright (c) 1988, 1993\n\
21 The Regents of the University of California. All rights reserved.\n")
22
23SM_IDSTR(id, "@(#)$Id: praliases.c,v 8.96 2008/07/10 20:13:10 ca Exp $")
23SM_IDSTR(id, "@(#)$Id: praliases.c,v 8.97 2013/03/12 15:24:51 ca Exp $")
24
25#include <sys/types.h>
26#include <ctype.h>
27#include <stdlib.h>
28#include <unistd.h>
29#ifdef EX_OK
30# undef EX_OK /* unistd.h may have another use for this */
31#endif /* EX_OK */

--- 85 unchanged lines hidden (view full) ---

117 NULL)) == NULL)
118 {
119 (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,
120 "praliases: %s: %s\n", cfile,
121 sm_errstring(errno));
122 exit(EX_NOINPUT);
123 }
124
24
25#include <sys/types.h>
26#include <ctype.h>
27#include <stdlib.h>
28#include <unistd.h>
29#ifdef EX_OK
30# undef EX_OK /* unistd.h may have another use for this */
31#endif /* EX_OK */

--- 85 unchanged lines hidden (view full) ---

117 NULL)) == NULL)
118 {
119 (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,
120 "praliases: %s: %s\n", cfile,
121 sm_errstring(errno));
122 exit(EX_NOINPUT);
123 }
124
125 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
125 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
126 {
127 register char *b, *p;
128
129 b = strchr(buf, '\n');
130 if (b != NULL)
131 *b = '\0';
132
133 b = buf;

--- 265 unchanged lines hidden ---
126 {
127 register char *b, *p;
128
129 b = strchr(buf, '\n');
130 if (b != NULL)
131 *b = '\0';
132
133 b = buf;

--- 265 unchanged lines hidden ---