Fix: smack_label_length(): int -> ssize_t
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 25 Oct 2013 12:58:48 +0000 (15:58 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 25 Oct 2013 12:58:48 +0000 (15:58 +0300)
libsmack/libsmack.c
libsmack/sys/smack.h

index 1a29cdc..14391d5 100644 (file)
@@ -739,7 +739,7 @@ static inline void parse_access_type(const char *in, char out[ACC_LEN + 1])
                }
 }
 
-int smack_label_length(const char *label)
+ssize_t smack_label_length(const char *label)
 {
        int i;
 
index 61c37d9..6a88fa7 100644 (file)
@@ -252,7 +252,7 @@ int smack_revoke_subject(const char *subject);
  * @param label label to verify
  * @return Returns length of the label on success and negative on failure.
  */
-int smack_label_length(const char *label);
+ssize_t smack_label_length(const char *label);
 
 #ifdef __cplusplus
 }