Deleted Added
full compact
chat.c (91214) chat.c (108470)
1/*-
2 * Copyright (c) 1997
3 * David L Nugent <davidn@blaze.net.au>.
4 * All rights reserved.
5 *
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, is permitted provided that the following conditions

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

20 * conditions are met.
21 *
22 * Modem chat module - send/expect style functions for getty
23 * For semi-intelligent modem handling.
24 */
25
26#ifndef lint
27static const char rcsid[] =
1/*-
2 * Copyright (c) 1997
3 * David L Nugent <davidn@blaze.net.au>.
4 * All rights reserved.
5 *
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, is permitted provided that the following conditions

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

20 * conditions are met.
21 *
22 * Modem chat module - send/expect style functions for getty
23 * For semi-intelligent modem handling.
24 */
25
26#ifndef lint
27static const char rcsid[] =
28 "$FreeBSD: head/libexec/getty/chat.c 91214 2002-02-25 02:18:36Z bde $";
28 "$FreeBSD: head/libexec/getty/chat.c 108470 2002-12-30 21:18:15Z schweikh $";
29#endif /* not lint */
30
31#include <sys/types.h>
32#include <sys/ioctl.h>
33#include <sys/utsname.h>
34
35#include <ctype.h>
36#include <signal.h>

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

292 *p = '\0';
293 }
294
295 return tmp;
296}
297
298
299/*
29#endif /* not lint */
30
31#include <sys/types.h>
32#include <sys/ioctl.h>
33#include <sys/utsname.h>
34
35#include <ctype.h>
36#include <signal.h>

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

292 *p = '\0';
293 }
294
295 return tmp;
296}
297
298
299/*
300 * return result as an pseudo-english word
300 * return result as a pseudo-english word
301 */
302
303static const char *
304result(int r)
305{
306 static const char * results[] = {
307 "OK", "MEMERROR", "IOERROR", "TIMEOUT"
308 };

--- 181 unchanged lines hidden ---
301 */
302
303static const char *
304result(int r)
305{
306 static const char * results[] = {
307 "OK", "MEMERROR", "IOERROR", "TIMEOUT"
308 };

--- 181 unchanged lines hidden ---