39c39
< __FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 169727 2007-05-19 04:53:14Z kan $");
---
> __FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 170071 2007-05-28 20:41:10Z imp $");
319,340c319,320
< struct sbuf *sb;
< int error;
< char *p;
<
< sb = sbuf_new(NULL, NULL, 2048, SBUF_AUTOEXTEND);
< if (sb == NULL)
< return (ENOMEM);
< sbuf_clear(sb);
< p = kernconfstring;
< if (p == NULL || *p == '\0') {
< sbuf_printf(sb, "No kernel configuration\n");
< } else {
< sbuf_printf(sb, "%s", p);
< }
< sbuf_trim(sb);
< sbuf_putc(sb, '\n');
< sbuf_finish(sb);
< error = sysctl_handle_string(oidp, sbuf_data(sb), sbuf_len(sb), req);
< if (error)
< return (error);
< sbuf_delete(sb);
< return (error);
---
> return (sysctl_handle_string(oidp, kernconfstring,
> strlen(kernconfstring), req));
341a322
>
< __FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 169727 2007-05-19 04:53:14Z kan $");
---
> __FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 170071 2007-05-28 20:41:10Z imp $");
319,340c319,320
< struct sbuf *sb;
< int error;
< char *p;
<
< sb = sbuf_new(NULL, NULL, 2048, SBUF_AUTOEXTEND);
< if (sb == NULL)
< return (ENOMEM);
< sbuf_clear(sb);
< p = kernconfstring;
< if (p == NULL || *p == '\0') {
< sbuf_printf(sb, "No kernel configuration\n");
< } else {
< sbuf_printf(sb, "%s", p);
< }
< sbuf_trim(sb);
< sbuf_putc(sb, '\n');
< sbuf_finish(sb);
< error = sysctl_handle_string(oidp, sbuf_data(sb), sbuf_len(sb), req);
< if (error)
< return (error);
< sbuf_delete(sb);
< return (error);
---
> return (sysctl_handle_string(oidp, kernconfstring,
> strlen(kernconfstring), req));
341a322
>