]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/memset_s.c
xnu-4903.270.47.tar.gz
[apple/xnu.git] / osfmk / kern / memset_s.c
index f13d0f6cd3b865b966983ea44483dd8ce60d897c..37b89450d348cf0f85e4264bd4d6e435f5d4e583 100644 (file)
@@ -45,19 +45,22 @@ memset_s(void *s, size_t smax, int c, size_t n)
 {
        int err = 0;
 
-       if (s == NULL) return EINVAL;
-       if (smax > RSIZE_MAX) return E2BIG;
+       if (s == NULL) {
+               return EINVAL;
+       }
+       if (smax > RSIZE_MAX) {
+               return E2BIG;
+       }
        if (n > smax) {
                n = smax;
                err = EOVERFLOW;
        }
 
-       /* 
+       /*
         * secure_memset is defined in assembly, we therefore
-        * expect that the compiler will not inline the call.
+        * expect that the compiler will not inline the call.
         */
        secure_memset(s, c, n);
 
        return err;
 }
-