From: Jarkko Sakkinen Date: Tue, 4 Oct 2011 11:45:53 +0000 (+0300) Subject: Renamed smack_get_peer_label to smack_get_socket_label. X-Git-Tag: accepted/trunk/20130107.204027~105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4354aba33563e7d17c7810ad707b4bf3010c82ea;p=platform%2Fupstream%2Fsmack.git Renamed smack_get_peer_label to smack_get_socket_label. --- diff --git a/src/smack.c b/src/smack.c index 9bdb6b4..e9db0e5 100644 --- a/src/smack.c +++ b/src/smack.c @@ -293,7 +293,7 @@ int smack_have_access(int fd, const char *subject, return buf[0] == '1'; } -char *smack_get_peer_label(int fd) +char *smack_get_socket_label(int fd) { char dummy; int ret; diff --git a/src/smack.h b/src/smack.h index 4f3c831..c896f61 100644 --- a/src/smack.h +++ b/src/smack.h @@ -110,13 +110,13 @@ extern int smack_have_access(int fd, const char *subject, const char *object, const char *access_type); /*! - * Get the label that is associated with a peer on the other end of a socket. - * Caller is responsible of freeing the returned label. + * Get the label that is associated with a peer on the other end of an + * Unix socket. Caller is responsible of freeing the returned label. * * @param fd socket file descriptor * @return label on success and NULL of failure. */ -extern char *smack_get_peer_label(int fd); +extern char *smack_get_socket_label(int fd); #ifdef __cplusplus }