Revert r279934, r279938; this is going to be fixed in sbuf instead.

PR:		195668
This commit is contained in:
Ian Lepore 2015-03-14 13:04:39 +00:00
parent 59daf5b0ce
commit b36424bd4b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279984
2 changed files with 0 additions and 2 deletions

View File

@ -321,7 +321,6 @@ sysctl_l2t(SYSCTL_HANDLER_ARGS)
mtx_unlock(&e->lock);
}
sbuf_putc(sb, 0); /* nullterm */
rc = sbuf_finish(sb);
sbuf_delete(sb);

View File

@ -5087,7 +5087,6 @@ sysctl_int_array(SYSCTL_HANDLER_ARGS)
for (i = arg1; arg2; arg2 -= sizeof(int), i++)
sbuf_printf(&sb, "%d ", *i);
sbuf_trim(&sb);
sbuf_putc(&sb, 0); /* nullterm */
sbuf_finish(&sb);
rc = sysctl_handle_string(oidp, sbuf_data(&sb), sbuf_len(&sb), req);
sbuf_delete(&sb);