Deleted Added
full compact
mail.c (149017) mail.c (200956)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

31 */
32
33#ifndef lint
34#if 0
35static char sccsid[] = "@(#)mail.c 8.2 (Berkeley) 5/4/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

31 */
32
33#ifndef lint
34#if 0
35static char sccsid[] = "@(#)mail.c 8.2 (Berkeley) 5/4/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/bin/sh/mail.c 149017 2005-08-13 08:26:58Z stefanf $");
39__FBSDID("$FreeBSD: head/bin/sh/mail.c 200956 2009-12-24 18:41:14Z jilles $");
40
41/*
42 * Routines to check for mail. (Perhaps make part of main.c?)
43 */
44
45#include "shell.h"
46#include "exec.h" /* defines padvance() */
47#include "mail.h"

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

67 * nozero, then the value of MAIL has changed, so we just update the
68 * values.
69 */
70
71void
72chkmail(int silent)
73{
74 int i;
40
41/*
42 * Routines to check for mail. (Perhaps make part of main.c?)
43 */
44
45#include "shell.h"
46#include "exec.h" /* defines padvance() */
47#include "mail.h"

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

67 * nozero, then the value of MAIL has changed, so we just update the
68 * values.
69 */
70
71void
72chkmail(int silent)
73{
74 int i;
75 char *mpath;
75 const char *mpath;
76 char *p;
77 char *q;
78 struct stackmark smark;
79 struct stat statb;
80
81 if (silent)
82 nmboxes = 10;
83 if (nmboxes == 0)

--- 34 unchanged lines hidden ---
76 char *p;
77 char *q;
78 struct stackmark smark;
79 struct stat statb;
80
81 if (silent)
82 nmboxes = 10;
83 if (nmboxes == 0)

--- 34 unchanged lines hidden ---