util.c (99110) | util.c (104130) |
---|---|
1/*- 2 * Copyright (c) 1992, 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 --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)util.c 8.2 (Berkeley) 4/2/94"; 37#endif 38#endif /* not lint */ 39#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1992, 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 --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)util.c 8.2 (Berkeley) 4/2/94"; 37#endif 38#endif /* not lint */ 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/bin/rcp/util.c 99110 2002-06-30 05:15:05Z obrien $"); | 40__FBSDID("$FreeBSD: head/bin/rcp/util.c 104130 2002-09-29 07:59:57Z jmallett $"); |
41 42#include <sys/param.h> 43#include <sys/stat.h> 44#include <sys/wait.h> 45 46#include <ctype.h> 47#include <err.h> 48#include <errno.h> --- 101 unchanged lines hidden (view full) --- 150 run_err("%s", strerror(errno)); 151 return (0); 152 } 153 bp->cnt = size; 154 return (bp); 155} 156 157void | 41 42#include <sys/param.h> 43#include <sys/stat.h> 44#include <sys/wait.h> 45 46#include <ctype.h> 47#include <err.h> 48#include <errno.h> --- 101 unchanged lines hidden (view full) --- 150 run_err("%s", strerror(errno)); 151 return (0); 152 } 153 bp->cnt = size; 154 return (bp); 155} 156 157void |
158lostconn(int signo) | 158lostconn(int signo __unused) |
159{ 160 if (!iamremote) 161 warnx("lost connection"); 162 exit(1); 163} | 159{ 160 if (!iamremote) 161 warnx("lost connection"); 162 exit(1); 163} |