modeedit.c (64474) | modeedit.c (92806) |
---|---|
1/*- 2 * Copyright (c) 2000 Kelly Yancey <kbyanc@posi.net> 3 * Derived from work done by Julian Elischer <julian@tfs.com, 4 * julian@dialix.oz.au>, 1993, and Peter Dufault <dufault@hda.com>, 1994. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#ifndef lint 30static const char rcsid[] = | 1/*- 2 * Copyright (c) 2000 Kelly Yancey <kbyanc@posi.net> 3 * Derived from work done by Julian Elischer <julian@tfs.com, 4 * julian@dialix.oz.au>, 1993, and Peter Dufault <dufault@hda.com>, 1994. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#ifndef lint 30static const char rcsid[] = |
31 "$FreeBSD: head/sbin/camcontrol/modeedit.c 64474 2000-08-10 01:20:43Z kbyanc $"; | 31 "$FreeBSD: head/sbin/camcontrol/modeedit.c 92806 2002-03-20 17:55:10Z obrien $"; |
32#endif /* not lint */ 33 34#include <sys/queue.h> 35#include <sys/types.h> 36 37#include <assert.h> 38#include <ctype.h> 39#include <err.h> --- 95 unchanged lines hidden (view full) --- 135 136#define returnerr(code) do { \ 137 errno = code; \ 138 return (-1); \ 139} while (0) 140 141 142#define RTRIM(string) do { \ | 32#endif /* not lint */ 33 34#include <sys/queue.h> 35#include <sys/types.h> 36 37#include <assert.h> 38#include <ctype.h> 39#include <err.h> --- 95 unchanged lines hidden (view full) --- 135 136#define returnerr(code) do { \ 137 errno = code; \ 138 return (-1); \ 139} while (0) 140 141 142#define RTRIM(string) do { \ |
143 register int _length; \ | 143 int _length; \ |
144 while (isspace(string[_length = strlen(string) - 1])) \ 145 string[_length] = '\0'; \ 146} while (0) 147 148 149static void 150editentry_create(void *hook, int letter, void *arg, int count, char *name) 151{ --- 761 unchanged lines hidden --- | 144 while (isspace(string[_length = strlen(string) - 1])) \ 145 string[_length] = '\0'; \ 146} while (0) 147 148 149static void 150editentry_create(void *hook, int letter, void *arg, int count, char *name) 151{ --- 761 unchanged lines hidden --- |