Deleted Added
full compact
mci.c (223067) mci.c (249729)
1/*
2 * Copyright (c) 1998-2005, 2010 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1995-1997 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
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#include <sendmail.h>
15
1/*
2 * Copyright (c) 1998-2005, 2010 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1995-1997 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
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#include <sendmail.h>
15
16SM_RCSID("@(#)$Id: mci.c,v 8.223 2010/03/10 04:35:28 ca Exp $")
16SM_RCSID("@(#)$Id: mci.c,v 8.224 2013/03/12 15:24:53 ca Exp $")
17
18#if NETINET || NETINET6
19# include <arpa/inet.h>
20#endif /* NETINET || NETINET6 */
21
22#include <dirent.h>
23
24static int mci_generate_persistent_path __P((const char *, char *,

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

967 }
968
969 SM_FREE_CLR(mci->mci_status);
970 SM_FREE_CLR(mci->mci_rstatus);
971
972 sm_io_rewind(fp, SM_TIME_DEFAULT);
973 ver = -1;
974 LineNumber = 0;
17
18#if NETINET || NETINET6
19# include <arpa/inet.h>
20#endif /* NETINET || NETINET6 */
21
22#include <dirent.h>
23
24static int mci_generate_persistent_path __P((const char *, char *,

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

967 }
968
969 SM_FREE_CLR(mci->mci_status);
970 SM_FREE_CLR(mci->mci_rstatus);
971
972 sm_io_rewind(fp, SM_TIME_DEFAULT);
973 ver = -1;
974 LineNumber = 0;
975 while (sm_io_fgets(fp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
975 while (sm_io_fgets(fp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
976 {
977 LineNumber++;
978 p = strchr(buf, '\n');
979 if (p != NULL)
980 *p = '\0';
981 switch (buf[0])
982 {
983 case 'V': /* version stamp */

--- 624 unchanged lines hidden ---
976 {
977 LineNumber++;
978 p = strchr(buf, '\n');
979 if (p != NULL)
980 *p = '\0';
981 switch (buf[0])
982 {
983 case 'V': /* version stamp */

--- 624 unchanged lines hidden ---