svn commit: r271882 - head/usr.sbin/mfiutil
Steven Hartland
smh at FreeBSD.org
Fri Sep 19 23:38:45 UTC 2014
Author: smh
Date: Fri Sep 19 23:38:44 2014
New Revision: 271882
URL: http://svnweb.freebsd.org/changeset/base/271882
Log:
Style (9) fixes, spaces to tabs.
Fix style issues noticed when I went to MFC r257820
MFC after: 2 days
X-MFC-With: r257820
Sponsored by: Multiplay
Modified:
head/usr.sbin/mfiutil/mfi_properties.c
Modified: head/usr.sbin/mfiutil/mfi_properties.c
==============================================================================
--- head/usr.sbin/mfiutil/mfi_properties.c Fri Sep 19 23:16:02 2014 (r271881)
+++ head/usr.sbin/mfiutil/mfi_properties.c Fri Sep 19 23:38:44 2014 (r271882)
@@ -68,7 +68,7 @@ mfi_ctrl_set_properties(int fd, struct m
static int
mfi_ctrl_rebuild_rate(int ac, char **av)
{
- int error, fd;
+ int error, fd;
struct mfi_ctrl_props ctrl_props;
if (ac > 2) {
@@ -76,40 +76,40 @@ mfi_ctrl_rebuild_rate(int ac, char **av)
return(-1);
}
- fd = mfi_open(mfi_unit, O_RDWR);
- if (fd < 0) {
- error = errno;
- warn("mfi_open");
- return (error);
- }
+ fd = mfi_open(mfi_unit, O_RDWR);
+ if (fd < 0) {
+ error = errno;
+ warn("mfi_open");
+ return (error);
+ }
error = mfi_ctrl_get_properties(fd, &ctrl_props);
- if ( error < 0) {
- error = errno;
- warn("Failed to get controller properties");
- close(fd);
- return (error);
- }
+ if ( error < 0) {
+ error = errno;
+ warn("Failed to get controller properties");
+ close(fd);
+ return (error);
+ }
/*
* User requested a change to the rebuild rate
*/
if (ac > 1) {
ctrl_props.rebuild_rate = atoi(av[ac - 1]);
error = mfi_ctrl_set_properties(fd, &ctrl_props);
- if ( error < 0) {
- error = errno;
- warn("Failed to set controller properties");
- close(fd);
- return (error);
- }
+ if ( error < 0) {
+ error = errno;
+ warn("Failed to set controller properties");
+ close(fd);
+ return (error);
+ }
error = mfi_ctrl_get_properties(fd, &ctrl_props);
- if ( error < 0) {
- error = errno;
- warn("Failed to get controller properties");
- close(fd);
- return (error);
- }
+ if ( error < 0) {
+ error = errno;
+ warn("Failed to get controller properties");
+ close(fd);
+ return (error);
+ }
}
printf ("controller rebuild rate: %%%u \n",
ctrl_props.rebuild_rate);
@@ -120,7 +120,7 @@ MFI_COMMAND(ctrlprop, rebuild, mfi_ctrl_
static int
mfi_ctrl_alarm_enable(int ac, char **av)
{
- int error, fd;
+ int error, fd;
struct mfi_ctrl_props ctrl_props;
if (ac > 2) {
@@ -128,40 +128,40 @@ mfi_ctrl_alarm_enable(int ac, char **av)
return(-1);
}
- fd = mfi_open(mfi_unit, O_RDWR);
- if (fd < 0) {
- error = errno;
- warn("mfi_open");
- return (error);
- }
+ fd = mfi_open(mfi_unit, O_RDWR);
+ if (fd < 0) {
+ error = errno;
+ warn("mfi_open");
+ return (error);
+ }
error = mfi_ctrl_get_properties(fd, &ctrl_props);
- if ( error < 0) {
- error = errno;
- warn("Failed to get controller properties");
- close(fd);
- return (error);
- }
+ if ( error < 0) {
+ error = errno;
+ warn("Failed to get controller properties");
+ close(fd);
+ return (error);
+ }
printf ("controller alarm was : %s\n",
(ctrl_props.alarm_enable ? "enabled" : "disabled"));
if (ac > 1) {
ctrl_props.alarm_enable = atoi(av[ac - 1]);
error = mfi_ctrl_set_properties(fd, &ctrl_props);
- if ( error < 0) {
- error = errno;
- warn("Failed to set controller properties");
- close(fd);
- return (error);
- }
+ if ( error < 0) {
+ error = errno;
+ warn("Failed to set controller properties");
+ close(fd);
+ return (error);
+ }
error = mfi_ctrl_get_properties(fd, &ctrl_props);
- if ( error < 0) {
- error = errno;
- warn("Failed to get controller properties");
- close(fd);
- return (error);
- }
+ if ( error < 0) {
+ error = errno;
+ warn("Failed to get controller properties");
+ close(fd);
+ return (error);
+ }
}
printf ("controller alarm was : %s\n",
(ctrl_props.alarm_enable ? "enabled" : "disabled"));
More information about the svn-src-all
mailing list