|
From: <ssm...@us...> - 2006-09-29 15:35:01
|
Revision: 2045
http://svn.sourceforge.net/selinux/?rev=2045&view=rev
Author: ssmalley
Date: 2006-09-29 08:34:57 -0700 (Fri, 29 Sep 2006)
Log Message:
-----------
make indent
Modified Paths:
--------------
trunk/libselinux/src/setrans_client.c
trunk/policycoreutils/newrole/newrole.c
Modified: trunk/libselinux/src/setrans_client.c
===================================================================
--- trunk/libselinux/src/setrans_client.c 2006-09-29 15:33:28 UTC (rev 2044)
+++ trunk/libselinux/src/setrans_client.c 2006-09-29 15:34:57 UTC (rev 2045)
@@ -88,13 +88,14 @@
iov[4].iov_len = data2_size;
memset(&msgh, 0, sizeof(msgh));
msgh.msg_iov = iov;
- msgh.msg_iovlen = sizeof(iov)/sizeof(iov[0]);
+ msgh.msg_iovlen = sizeof(iov) / sizeof(iov[0]);
expected = 0;
- for (i = 0; i < sizeof(iov)/sizeof(iov[0]); i++)
+ for (i = 0; i < sizeof(iov) / sizeof(iov[0]); i++)
expected += iov[i].iov_len;
- while (((count = sendmsg(fd, &msgh, MSG_NOSIGNAL)) < 0) && (errno == EINTR)) ;
+ while (((count = sendmsg(fd, &msgh, MSG_NOSIGNAL)) < 0)
+ && (errno == EINTR)) ;
if (count < 0 || count != expected)
return -1;
Modified: trunk/policycoreutils/newrole/newrole.c
===================================================================
--- trunk/policycoreutils/newrole/newrole.c 2006-09-29 15:33:28 UTC (rev 2044)
+++ trunk/policycoreutils/newrole/newrole.c 2006-09-29 15:34:57 UTC (rev 2045)
@@ -411,31 +411,33 @@
return -1;
}
if (asprintf(&msg, "newrole: old-context=%s new-context=%s",
- old_context ? old_context : "?",
- new_context ? new_context : "?") < 0) {
+ old_context ? old_context : "?",
+ new_context ? new_context : "?") < 0) {
fprintf(stderr, _("Error allocating memory.\n"));
rc = -1;
goto out;
}
rc = audit_log_user_message(audit_fd, AUDIT_USER_ROLE_CHANGE,
- msg, NULL, NULL, ttyn, success);
+ msg, NULL, NULL, ttyn, success);
if (rc <= 0) {
fprintf(stderr, _("Error sending audit message.\n"));
rc = -1;
goto out;
}
rc = 0;
-out:
+ out:
free(msg);
close(audit_fd);
return rc;
}
#else
static inline
-int send_audit_message(int success __attribute__((unused)),
- security_context_t old_context __attribute__((unused)),
- security_context_t new_context __attribute__((unused)),
- const char *ttyn __attribute__((unused)))
+ int send_audit_message(int success __attribute__ ((unused)),
+ security_context_t old_context
+ __attribute__ ((unused)),
+ security_context_t new_context
+ __attribute__ ((unused)), const char *ttyn
+ __attribute__ ((unused)))
{
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|