Deleted Added
full compact
login_cap.c (25702) login_cap.c (26621)
1/*-
2 * Copyright (c) 1996 by
3 * Sean Eric Fagan <sef@kithrup.com>
4 * David Nugent <davidn@blaze.net.au>
5 * All rights reserved.
6 *
7 * Portions copyright (c) 1995,1997
8 * Berkeley Software Design, Inc.

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

20 * 3. This work was done expressly for inclusion into FreeBSD. Other use
21 * is permitted provided this notation is included.
22 * 4. Absolutely no warranty of function or purpose is made by the authors.
23 * 5. Modifications may be freely made to this file providing the above
24 * conditions are met.
25 *
26 * Low-level routines relating to the user capabilities database
27 *
1/*-
2 * Copyright (c) 1996 by
3 * Sean Eric Fagan <sef@kithrup.com>
4 * David Nugent <davidn@blaze.net.au>
5 * All rights reserved.
6 *
7 * Portions copyright (c) 1995,1997
8 * Berkeley Software Design, Inc.

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

20 * 3. This work was done expressly for inclusion into FreeBSD. Other use
21 * is permitted provided this notation is included.
22 * 4. Absolutely no warranty of function or purpose is made by the authors.
23 * 5. Modifications may be freely made to this file providing the above
24 * conditions are met.
25 *
26 * Low-level routines relating to the user capabilities database
27 *
28 * $Id: login_cap.c,v 1.12 1997/05/10 18:55:37 davidn Exp $
28 * $Id: login_cap.c,v 1.13 1997/05/11 08:07:29 davidn Exp $
29 */
30
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>
34#include <errno.h>
35#include <fcntl.h>
36#include <unistd.h>

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

552 case 'h': case 'H': /* hours */
553 mult = 60L * 60L;
554 break;
555 case 'd': case 'D': /* days */
556 mult = 60L * 60L * 24L;
557 break;
558 case 'w': case 'W': /* weeks */
559 mult = 60L * 60L * 24L * 7L;
29 */
30
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>
34#include <errno.h>
35#include <fcntl.h>
36#include <unistd.h>

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

552 case 'h': case 'H': /* hours */
553 mult = 60L * 60L;
554 break;
555 case 'd': case 'D': /* days */
556 mult = 60L * 60L * 24L;
557 break;
558 case 'w': case 'W': /* weeks */
559 mult = 60L * 60L * 24L * 7L;
560 break;
560 case 'y': case 'Y': /* 365-day years */
561 mult = 60L * 60L * 24L * 365L;
561 case 'y': case 'Y': /* 365-day years */
562 mult = 60L * 60L * 24L * 365L;
563 break;
562 default:
563 goto invalid;
564 }
565 res = ep;
566 tot += rmultiply(tim, mult);
567 if (errno)
568 goto invalid;
569 }

--- 209 unchanged lines hidden ---
564 default:
565 goto invalid;
566 }
567 res = ep;
568 tot += rmultiply(tim, mult);
569 if (errno)
570 goto invalid;
571 }

--- 209 unchanged lines hidden ---