aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/sdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-04-08 08:42:25 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-04-08 08:42:25 +0000
commitbcc76a2e83c4045f80384693dbe81d95baa09f40 (patch)
tree4d115fffdd72f5935a8b131049f314756db15223 /usr.bin/sdiff
parent85bb63bd290cb773ae8fe960fbd91ad828c12ca6 (diff)
downloadsrc-bcc76a2e83c4045f80384693dbe81d95baa09f40.tar.gz
src-bcc76a2e83c4045f80384693dbe81d95baa09f40.zip
Remove a useless loop over the long options before passing through some
options to diff(1)
Notes
Notes: svn path=/head/; revision=316638
Diffstat (limited to 'usr.bin/sdiff')
-rw-r--r--usr.bin/sdiff/sdiff.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/sdiff/sdiff.c b/usr.bin/sdiff/sdiff.c
index a0a7566f3528..6a73647a1965 100644
--- a/usr.bin/sdiff/sdiff.c
+++ b/usr.bin/sdiff/sdiff.c
@@ -213,7 +213,6 @@ main(int argc, char **argv)
int ch, fd[2] = {-1}, status;
pid_t pid=0;
const char *outfile = NULL;
- struct option *popt;
char **diffargv, *diffprog = DIFF_PATH, *filename1, *filename2,
*tmp1, *tmp2, *s1, *s2;
int i;
@@ -260,7 +259,6 @@ main(int argc, char **argv)
case 'i':
case 't':
case 'W':
- for(popt = longopts; ch != popt->val && popt->name != NULL; popt++);
diffargv[1] = realloc(diffargv[1], sizeof(char) * strlen(diffargv[1]) + 2);
/*
* In diff, the 'W' option is 'w' and the 'w' is 'W'.