]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libratbox/include/rb_memory.h
Cope with OPENSSL_VERSION_NUMBER not being a long.
[irc/rqf/shadowircd.git] / libratbox / include / rb_memory.h
index 1cb3d3ca0208e84bd3e61aa65fbd8e94e7caf21d..1bc7af09880643e977c310096d52bfc6eec95bfb 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
  *  USA
  *
- *  $Id: rb_memory.h 25375 2008-05-16 15:19:51Z androsyn $
  */
 
 #ifndef RB_LIB_H
@@ -62,7 +61,7 @@ rb_strndup(const char *x, size_t y)
        if(rb_unlikely(ret == NULL))
                rb_outofmemory();
        rb_strlcpy(ret, x, y);
-       return(ret);
+       return (ret);
 }
 
 static inline char *
@@ -72,16 +71,15 @@ rb_strdup(const char *x)
        if(rb_unlikely(ret == NULL))
                rb_outofmemory();
        strcpy(ret, x);
-       return(ret);
+       return (ret);
 }
 
 
 static inline void
 rb_free(void *ptr)
 {
-        if(rb_likely(ptr != NULL))
-               free(ptr);
+       if(rb_likely(ptr != NULL))
+               free(ptr);
 }
 
 #endif /* _I_MEMORY_H */
-