summaryrefslogtreecommitdiff
path: root/sysutils/xmbmon/files/patch-mbmon.c
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-12-25 15:07:47 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-12-25 15:07:47 +0000
commit15b9e9def8e4aa6a941c05074b1a7c80bc027c74 (patch)
tree755faef5ee20754d726ee5b174714043f85e5474 /sysutils/xmbmon/files/patch-mbmon.c
parent- Update to 0.20.9 (diff)
- Add LICENSE [2]
- Merge sysutils/mbmon [2] - Add support for Intel 82801I (ICH9) SMBus controller [1] - Support STAGEDIR [2] PR: ports/184521 [1], ports/184628 [2] Submitted by: Dmitry S. Luhtionov <mitya@cabletv.dp.ua> [1], Muhammad Moinur Rahman <5u623l20@gmail.com> (maintainer) [2]
Notes
Notes: svn path=/head/; revision=337423
Diffstat (limited to 'sysutils/xmbmon/files/patch-mbmon.c')
-rw-r--r--sysutils/xmbmon/files/patch-mbmon.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/xmbmon/files/patch-mbmon.c b/sysutils/xmbmon/files/patch-mbmon.c
new file mode 100644
index 000000000000..30d759104011
--- /dev/null
+++ b/sysutils/xmbmon/files/patch-mbmon.c
@@ -0,0 +1,27 @@
+--- mbmon.c.orig 2004-08-13 16:23:32.000000000 +0900
++++ mbmon.c 2009-06-10 12:13:47.000000000 +0900
+@@ -315,7 +315,7 @@
+
+ name = argv[0];
+ #if !defined(LINUX) && defined(HAVE_SMBUS) && defined(SMBUS_IOCTL)
+- while ((ch = getopt(argc,argv,"VSIAfdDYe:p:s:c:T:F:tunNirh")) != -1) {
++ while ((ch = getopt(argc,argv,"VSIAfdDYe:p:s:c:T:F:tunNirhP:")) != -1) {
+ #else
+ while ((ch = getopt(argc,argv,"VSIAfdDYe:p:c:T:F:tunNirhP:")) != -1) {
+ #endif
+@@ -641,6 +641,7 @@
+ fprintf(out, "%4d\n%4d\n%4d\n", rot1, rot2, rot3);
+ }
+ if (port) {
++ fflush(out);
+ #ifdef LOGGING
+ if (nfd)
+ #endif
+@@ -659,6 +660,7 @@
+ if (hostname_flag == 1) {
+ hostname(sh_flag);
+ }
++ fflush(stdout);
+
+ /* count */
+ if (count != 0) {