summaryrefslogtreecommitdiffstats
path: root/src/ccapi/server/mac
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
committerTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
commit02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b (patch)
tree61b9147863cd8be3eff63903dc36cae168254bd5 /src/ccapi/server/mac
parent162ab371748cba0cc6f172419bd6e71fa04bb878 (diff)
downloadkrb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.gz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.xz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.zip
make mark-cstyle
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/server/mac')
-rw-r--r--src/ccapi/server/mac/ccs_os_notify.c28
-rw-r--r--src/ccapi/server/mac/ccs_os_pipe.c17
-rw-r--r--src/ccapi/server/mac/ccs_os_server.c16
3 files changed, 30 insertions, 31 deletions
diff --git a/src/ccapi/server/mac/ccs_os_notify.c b/src/ccapi/server/mac/ccs_os_notify.c
index 9202823165..84501fbd6f 100644
--- a/src/ccapi/server/mac/ccs_os_notify.c
+++ b/src/ccapi/server/mac/ccs_os_notify.c
@@ -33,22 +33,22 @@
cc_int32 ccs_os_notify_cache_collection_changed (ccs_cache_collection_t io_cache_collection)
{
cc_int32 err = ccNoError;
-
+
if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); }
-
+
if (!err) {
CFNotificationCenterRef center = CFNotificationCenterGetDistributedCenter ();
- if (center) {
+ if (center) {
CFNotificationCenterPostNotification (center,
kCCAPICacheCollectionChangedNotification,
NULL, NULL, TRUE);
}
}
-
-
-
- return cci_check_error (err);
+
+
+
+ return cci_check_error (err);
}
/* ------------------------------------------------------------------------ */
@@ -57,24 +57,24 @@ cc_int32 ccs_os_notify_ccache_changed (ccs_cache_collection_t io_cache_collecti
const char *in_ccache_name)
{
cc_int32 err = ccNoError;
-
+
if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); }
if (!in_ccache_name ) { err = cci_check_error (ccErrBadParam); }
-
+
if (!err) {
CFNotificationCenterRef center = CFNotificationCenterGetDistributedCenter ();
CFStringRef name = CFStringCreateWithCString (kCFAllocatorDefault,
in_ccache_name,
kCFStringEncodingUTF8);
-
- if (center && name) {
+
+ if (center && name) {
CFNotificationCenterPostNotification (center,
kCCAPICCacheChangedNotification,
name, NULL, TRUE);
}
-
+
if (name) { CFRelease (name); }
}
-
- return cci_check_error (err);
+
+ return cci_check_error (err);
}
diff --git a/src/ccapi/server/mac/ccs_os_pipe.c b/src/ccapi/server/mac/ccs_os_pipe.c
index 91227676c0..0462a64e61 100644
--- a/src/ccapi/server/mac/ccs_os_pipe.c
+++ b/src/ccapi/server/mac/ccs_os_pipe.c
@@ -44,16 +44,16 @@ cc_int32 ccs_os_pipe_compare (ccs_pipe_t in_pipe,
cc_uint32 *out_equal)
{
cc_int32 err = ccNoError;
-
+
if (!in_pipe ) { err = cci_check_error (ccErrBadParam); }
if (!in_compare_to_pipe) { err = cci_check_error (ccErrBadParam); }
if (!out_equal ) { err = cci_check_error (ccErrBadParam); }
-
+
if (!err) {
*out_equal = (in_pipe == in_compare_to_pipe);
}
-
- return cci_check_error (err);
+
+ return cci_check_error (err);
}
/* ------------------------------------------------------------------------ */
@@ -62,9 +62,9 @@ cc_int32 ccs_os_pipe_copy (ccs_pipe_t *out_pipe,
ccs_pipe_t in_pipe)
{
cc_int32 err = 0;
-
+
*out_pipe = in_pipe;
-
+
return cci_check_error (err);
}
@@ -73,9 +73,8 @@ cc_int32 ccs_os_pipe_copy (ccs_pipe_t *out_pipe,
cc_int32 ccs_os_pipe_release (ccs_pipe_t io_pipe)
{
cc_int32 err = 0;
-
+
/* Nothing to do here on Mac OS X */
-
+
return cci_check_error (err);
}
-
diff --git a/src/ccapi/server/mac/ccs_os_server.c b/src/ccapi/server/mac/ccs_os_server.c
index 98bc6b30a8..276c1ad145 100644
--- a/src/ccapi/server/mac/ccs_os_server.c
+++ b/src/ccapi/server/mac/ccs_os_server.c
@@ -51,8 +51,8 @@ kern_return_t k5_ipc_server_handle_request (mach_port_t in_connection_port,
mach_port_t in_reply_port,
k5_ipc_stream in_request_stream)
{
- return cci_check_error (ccs_server_handle_request (in_connection_port,
- in_reply_port,
+ return cci_check_error (ccs_server_handle_request (in_connection_port,
+ in_reply_port,
in_request_stream));
}
@@ -63,10 +63,10 @@ kern_return_t k5_ipc_server_handle_request (mach_port_t in_connection_port,
cc_int32 ccs_os_server_initialize (int argc, const char *argv[])
{
cc_int32 err = 0;
-
+
openlog (argv[0], LOG_CONS | LOG_PID, LOG_AUTH);
- syslog (LOG_INFO, "Starting up.");
-
+ syslog (LOG_INFO, "Starting up.");
+
return cci_check_error (err);
}
@@ -75,9 +75,9 @@ cc_int32 ccs_os_server_initialize (int argc, const char *argv[])
cc_int32 ccs_os_server_cleanup (int argc, const char *argv[])
{
cc_int32 err = 0;
-
+
syslog (LOG_NOTICE, "Exiting.");
-
+
return cci_check_error (err);
}
@@ -93,6 +93,6 @@ cc_int32 ccs_os_server_listen_loop (int argc, const char *argv[])
cc_int32 ccs_os_server_send_reply (ccs_pipe_t in_reply_pipe,
k5_ipc_stream in_reply_stream)
{
- return cci_check_error (k5_ipc_server_send_reply (in_reply_pipe,
+ return cci_check_error (k5_ipc_server_send_reply (in_reply_pipe,
in_reply_stream));
}