]> 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)
committerSage Weil <sage@redhat.com>
Thu, 16 Oct 2014 00:18:41 +0000 (17:18 -0700)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 76eff9503493312cb97e4a2f9236f4dbcbf931df)

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 */