This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master
in repository 389-ds-base.
commit 01272f7538b1c2c4ba291e092b9a9a592c7cc810
Author: William Brown <firstyear(a)redhat.com>
Date: Wed Aug 30 10:37:34 2017 +1000
Ticket 49367 - missing braces in idsktune
Bug Description: Missing braces in case switch in dsktune.
Fix Description: Add the missing braces
https://pagure.io/389-ds-base/issue/49367
Author: cgrzemba
Review by: wibrown (Thanks)
---
ldap/systools/idsktune.c | 32 +++++++++++++++++---------------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/ldap/systools/idsktune.c b/ldap/systools/idsktune.c
index 03b8b6e..c7aefd5 100644
--- a/ldap/systools/idsktune.c
+++ b/ldap/systools/idsktune.c
@@ -1475,21 +1475,22 @@ sun_check_network_device(void)
if (devfd == -1) {
switch (errno) {
- case EACCES:
- if (flag_debug) {
- printf("DEBUG : got EACCES opening %s\n",
SUN_NETWORK_DEVICE);
- }
- break;
- case ENOENT:
- if (flag_debug) {
- printf("DEBUG : got ENOENT opening %s\n",
SUN_NETWORK_DEVICE);
- }
- break;
- default:
- if (flag_debug) {
- printf("DEBUG : got %d opening %s\n", errno,
SUN_NETWORK_DEVICE);
+ case EACCES:
+ if (flag_debug) {
+ printf("DEBUG : got EACCES opening %s\n",
SUN_NETWORK_DEVICE);
+ }
+ break;
+ case ENOENT:
+ if (flag_debug) {
+ printf("DEBUG : got ENOENT opening %s\n",
SUN_NETWORK_DEVICE);
+ }
+ break;
+ default:
+ if (flag_debug) {
+ printf("DEBUG : got %d opening %s\n", errno,
SUN_NETWORK_DEVICE);
+ }
+ return;
}
- return;
}
else
{
@@ -1501,8 +1502,9 @@ sun_check_network_device(void)
printf("DEBUG : %s\n", buf);
}
if (iii_pio_getnum(buf, &ls) == -1) {
- if (flag_debug)
+ if (flag_debug) {
printf("DEBUG : %s link_speed variable not available\n",
SUN_NETWORK_DEVICE);
+ }
} else {
/* XXX look at link speed */
if (flag_debug) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.