sdiff.c (93badfa1f2c7f97efac0842c59cccac862dfe112) | sdiff.c (c59a0a34e8f3cc64a2b372824a7177b88af2a962) |
---|---|
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> --- 463 unchanged lines hidden (view full) --- 472 /* Process unmodified lines. */ 473 processq(); 474 475 /* Return diff exit status. */ 476 return (WEXITSTATUS(status)); 477} 478 479/* | 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> --- 463 unchanged lines hidden (view full) --- 472 /* Process unmodified lines. */ 473 processq(); 474 475 /* Return diff exit status. */ 476 return (WEXITSTATUS(status)); 477} 478 479/* |
480 * When sdiff/zsdiff detects a binary file as input, executes them with 481 * diff/zdiff to maintain the same behavior as GNU sdiff with binary input. | 480 * When sdiff detects a binary file as input, executes them with 481 * diff to maintain the same behavior as GNU sdiff with binary input. |
482 */ 483static void 484binexec(char *diffprog, char *f1, char *f2) 485{ 486 487 char *args[] = {diffprog, f1, f2, (char *) 0}; 488 execv(diffprog, args); 489 --- 688 unchanged lines hidden --- | 482 */ 483static void 484binexec(char *diffprog, char *f1, char *f2) 485{ 486 487 char *args[] = {diffprog, f1, f2, (char *) 0}; 488 execv(diffprog, args); 489 --- 688 unchanged lines hidden --- |