summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-02-23 23:33:11 +0000
committerdim <dim@FreeBSD.org>2014-02-23 23:33:11 +0000
commite42ec49846c3cc1c4e569ef2fe94c6a98409dee1 (patch)
tree142295e92ba823367fe65cd7a81b595d339851b4 /usr.bin
parent30b3f33f96ea15c79777bcbfdf19881842e93540 (diff)
parentc0bb2e6d46cf4cd5c28cf0b99d652a5e685e2f7b (diff)
downloadFreeBSD-src-e42ec49846c3cc1c4e569ef2fe94c6a98409dee1.zip
FreeBSD-src-e42ec49846c3cc1c4e569ef2fe94c6a98409dee1.tar.gz
Merge from head up to r262415.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dtc/fdt.cc1
-rw-r--r--usr.bin/hexdump/parse.c7
-rw-r--r--usr.bin/kdump/kdump.c2
3 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/dtc/fdt.cc b/usr.bin/dtc/fdt.cc
index 0599d55..988a339 100644
--- a/usr.bin/dtc/fdt.cc
+++ b/usr.bin/dtc/fdt.cc
@@ -1059,6 +1059,7 @@ device_tree::parse_roots(input_buffer &input, std::vector<node*> &roots)
{
valid = false;
}
+ input.next_token();
}
}
diff --git a/usr.bin/hexdump/parse.c b/usr.bin/hexdump/parse.c
index b10ce01..10db904 100644
--- a/usr.bin/hexdump/parse.c
+++ b/usr.bin/hexdump/parse.c
@@ -210,7 +210,6 @@ rewrite(FS *fs)
int nconv, prec;
size_t len;
- nextpr = NULL;
prec = 0;
for (fu = fs->nextfu; fu; fu = fu->nextfu) {
@@ -218,13 +217,11 @@ rewrite(FS *fs)
* Break each format unit into print units; each conversion
* character gets its own.
*/
+ nextpr = &fu->nextpr;
for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) {
if ((pr = calloc(1, sizeof(PR))) == NULL)
err(1, NULL);
- if (!fu->nextpr)
- fu->nextpr = pr;
- else
- *nextpr = pr;
+ *nextpr = pr;
/* Skip preceding text and up to the next % sign. */
for (p1 = fmtp; *p1 && *p1 != '%'; ++p1);
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 3a9ba0e..cf05f24 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1877,7 +1877,7 @@ ktrcapfail(struct ktr_cap_fail *ktr)
/* operation on fd with insufficient capabilities */
printf("operation requires ");
capname(&ktr->cap_needed);
- printf(", process holds ");
+ printf(", descriptor holds ");
capname(&ktr->cap_held);
break;
case CAPFAIL_INCREASE:
OpenPOWER on IntegriCloud