diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2006-01-28 22:35:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2006-01-28 22:35:55 +0000 |
commit | f53cfba06cccc96649116a1bf82eaf1ab7ba3a15 (patch) | |
tree | db2448250c7a1b53a9e43b155b1da813b51a28a2 /usr.bin/getcap | |
parent | 9eb23befc22ec095d0293ff0d9f2c038a5392a89 (diff) |
Remove duplicate cgetstr() call introduced by accident. Andrey Matveev
Diffstat (limited to 'usr.bin/getcap')
-rw-r--r-- | usr.bin/getcap/getcap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/getcap/getcap.c b/usr.bin/getcap/getcap.c index 4e90e0ec9ad..562aa6f75e5 100644 --- a/usr.bin/getcap/getcap.c +++ b/usr.bin/getcap/getcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getcap.c,v 1.1 2005/02/19 22:15:41 millert Exp $ */ +/* $OpenBSD: getcap.c,v 1.2 2006/01/28 22:35:54 millert Exp $ */ /* * Copyright (c) 2005 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,7 +17,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: getcap.c,v 1.1 2005/02/19 22:15:41 millert Exp $"; +static const char rcsid[] = "$OpenBSD: getcap.c,v 1.2 2006/01/28 22:35:54 millert Exp $"; #endif /* not lint */ #include <err.h> @@ -149,8 +149,6 @@ lookup_cap(char *buf, char *cap, enum captype type, int useprefix) return; else if (n == -2) err(1, NULL); /* ENOMEM */ - if (cgetstr(buf, cap, &cp) < 0) - return; printf("%.*s%s%s\n", prefixlen, buf, useprefix ? ": " : "", cp); break; |