sdiff.c (27067774dce3388702a4cf744d7096c6fb71b688) sdiff.c (6c6e3889290a73ddae85c68de44d928a838501ed)
1/* $OpenBSD: sdiff.c,v 1.36 2015/12/29 19:04:46 gsoares Exp $ */
2
3/*
4 * Written by Raymond Lai <ray@cyth.net>.
5 * Public domain.
6 */
7
8#include <sys/cdefs.h>

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

483static void
484binexec(char *diffprog, char *f1, char *f2)
485{
486
487 char *args[] = {diffprog, f1, f2, (char *) 0};
488 execv(diffprog, args);
489
490 /* If execv() fails, sdiff's execution will continue below. */
1/* $OpenBSD: sdiff.c,v 1.36 2015/12/29 19:04:46 gsoares Exp $ */
2
3/*
4 * Written by Raymond Lai <ray@cyth.net>.
5 * Public domain.
6 */
7
8#include <sys/cdefs.h>

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

483static void
484binexec(char *diffprog, char *f1, char *f2)
485{
486
487 char *args[] = {diffprog, f1, f2, (char *) 0};
488 execv(diffprog, args);
489
490 /* If execv() fails, sdiff's execution will continue below. */
491 errx(1, "Could not execute diff process.\n");
491 errx(1, "could not execute diff process");
492}
493
494/*
495 * Checks whether a file appears to be a text file.
496 */
497static int
498istextfile(FILE *f)
499{

--- 678 unchanged lines hidden ---
492}
493
494/*
495 * Checks whether a file appears to be a text file.
496 */
497static int
498istextfile(FILE *f)
499{

--- 678 unchanged lines hidden ---