]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/util.h: prevent multiple inclusion of header
authorJoao Eduardo Luis <jeclui@gmail.com>
Thu, 18 Sep 2014 15:25:44 +0000 (16:25 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Fri, 19 Sep 2014 17:33:22 +0000 (18:33 +0100)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/include/util.h

index b30132e4c5356cc239fe9082ae813c084b1af978..a08bb459e4a84618986c08cb68188359a3eb719d 100644 (file)
@@ -10,6 +10,8 @@
  * License version 2.1, as published by the Free Software 
  * Foundation.  See file COPYING.
  */
+#ifndef CEPH_UTIL_H
+#define CEPH_UTIL_H
 
 // is buf~len completely zero (in 8-byte chunks)
 
@@ -18,3 +20,4 @@
 bool buf_is_zero(const char *buf, size_t len);
 
 int64_t unit_to_bytesize(string val, ostream *pss);
+#endif /* CEPH_UTIL_H */