Deleted Added
full compact
map.c (28370) map.c (29574)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/9/93";
37#endif
38static const char rcsid[] =
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/9/93";
37#endif
38static const char rcsid[] =
39 "$Id$";
39 "$Id: map.c,v 1.4 1997/08/18 07:27:53 charnier Exp $";
40#endif /* not lint */
41
42#include <sys/types.h>
43#include <err.h>
44#include <stdlib.h>
45#include <string.h>
46#include <termios.h>
47#include "extern.h"

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

137 } else { /* Optional baudrate. */
138 arg = index(p = arg, ':');
139 if (arg == NULL)
140 goto badmopt;
141 *arg++ = '\0';
142 mapp->speed = baudrate(p);
143 }
144
40#endif /* not lint */
41
42#include <sys/types.h>
43#include <err.h>
44#include <stdlib.h>
45#include <string.h>
46#include <termios.h>
47#include "extern.h"

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

137 } else { /* Optional baudrate. */
138 arg = index(p = arg, ':');
139 if (arg == NULL)
140 goto badmopt;
141 *arg++ = '\0';
142 mapp->speed = baudrate(p);
143 }
144
145 if (*arg == NULL) /* Non-optional type. */
145 if (*arg == '\0') /* Non-optional type. */
146 goto badmopt;
147
148 mapp->type = arg;
149
150 /* Terminate porttype, if specified. */
151 if (termp != NULL)
152 *termp = '\0';
153

--- 103 unchanged lines hidden ---
146 goto badmopt;
147
148 mapp->type = arg;
149
150 /* Terminate porttype, if specified. */
151 if (termp != NULL)
152 *termp = '\0';
153

--- 103 unchanged lines hidden ---