Deleted Added
full compact
alias.c (216622) alias.c (218306)
1/*-
2 * Copyright (c) 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[] = "@(#)alias.c 8.3 (Berkeley) 5/4/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 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[] = "@(#)alias.c 8.3 (Berkeley) 5/4/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/bin/sh/alias.c 216622 2010-12-21 20:47:06Z jilles $");
39__FBSDID("$FreeBSD: head/bin/sh/alias.c 218306 2011-02-04 22:47:55Z jilles $");
40
41#include <stdlib.h>
42#include "shell.h"
43#include "output.h"
44#include "error.h"
45#include "memalloc.h"
46#include "mystring.h"
47#include "alias.h"

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

140 aliases--;
141 return (0);
142 }
143 }
144
145 return (1);
146}
147
40
41#include <stdlib.h>
42#include "shell.h"
43#include "output.h"
44#include "error.h"
45#include "memalloc.h"
46#include "mystring.h"
47#include "alias.h"

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

140 aliases--;
141 return (0);
142 }
143 }
144
145 return (1);
146}
147
148#ifdef mkinit
149MKINIT void rmaliases(void);
150
151SHELLPROC {
152 rmaliases();
153}
154#endif
155
156void
148static void
157rmaliases(void)
158{
159 struct alias *ap, *tmp;
160 int i;
161
162 INTOFF;
163 for (i = 0; i < ATABSIZE; i++) {
164 ap = atab[i];

--- 124 unchanged lines hidden ---
149rmaliases(void)
150{
151 struct alias *ap, *tmp;
152 int i;
153
154 INTOFF;
155 for (i = 0; i < ATABSIZE; i++) {
156 ap = atab[i];

--- 124 unchanged lines hidden ---