FreeBSD Bugzilla – Attachment 227982 Details for
Bug 258572
usr.sbin/i2c: Fix options handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to usr.sbin/i2c/i2c.c to fix options handling
i2c.patch (text/plain), 666 bytes, created by
Martin Birgmeier
on 2021-09-18 15:08:53 UTC
(
hide
)
Description:
patch to usr.sbin/i2c/i2c.c to fix options handling
Filename:
MIME Type:
Creator:
Martin Birgmeier
Created:
2021-09-18 15:08:53 UTC
Size:
666 bytes
patch
obsolete
>diff --git a/usr.sbin/i2c/i2c.c b/usr.sbin/i2c/i2c.c >index 87bb1f0fe98..2ab7c55772d 100644 >--- a/usr.sbin/i2c/i2c.c >+++ b/usr.sbin/i2c/i2c.c >@@ -744,7 +744,7 @@ main(int argc, char** argv) > struct options i2c_opt; > const char *dev, *err_msg; > int fd, error = 0, ch; >- const char *optflags = "a:f:d:o:w:c:m:n:sbvrh"; >+ const char *optflags = "a:f:d:o:iw:c:m:n:sbvrh"; > char do_what = 0; > > dev = I2C_DEV; >@@ -763,7 +763,7 @@ main(int argc, char** argv) > > /* Find out what we are going to do */ > >- while ((ch = getopt(argc, argv, "a:f:d:iw:c:m:n:sbvrh")) != -1) { >+ while ((ch = getopt(argc, argv, optflags)) != -1) { > switch(ch) { > case 'a': > case 'i':
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 258572
: 227982