FreeBSD Bugzilla – Attachment 18440 Details for
Bug 33151
sbin/sysctl: unreachable and duplicated code [patch included]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 605 bytes, created by
Thomas Quinot
on 2001-12-24 14:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Thomas Quinot
Created:
2001-12-24 14:50:00 UTC
Size:
605 bytes
patch
obsolete
>--- sysctl.c.dist Mon Dec 24 14:31:10 2001 >+++ sysctl.c Mon Dec 24 15:39:37 2001 >@@ -213,7 +213,6 @@ > case CTLTYPE_STRING: > break; > case CTLTYPE_QUAD: >- break; > sscanf(newval, "%qd", &quadval); > newval = &quadval; > newsize = sizeof(quadval); >@@ -425,16 +424,8 @@ > return (0); > } > >- qoid[1] = 4; >- j = sizeof(buf); >- i = sysctl(qoid, nlen + 2, buf, &j, 0, 0); >- if (i || !j) >- err(1, "sysctl fmt %d %d %d", i, j, errno); >- >- kind = *(u_int *)buf; >- >- fmt = (char *)(buf + sizeof(u_int)); >- >+ fmt = buf; >+ oidfmt(oid, nlen, fmt, &kind); > p = val; > switch (*fmt) { > case 'A':
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 33151
: 18440