Permalink
Browse files

zsync.h: add include guards

  • Loading branch information...
merlino authored and gianm committed Jan 5, 2011
1 parent 72e5b58 commit 02ca8a1d1a5e667ed1ff80645b0aa15191ef230b
Showing with 4 additions and 0 deletions.
  1. +4 −0 c/libzsync/zsync.h
View
@@ -13,6 +13,9 @@
* COPYING file for details.
*/
+#ifndef ZSYNC_ZSYNC_H
+#define ZSYNC_ZSYNC_H
+
struct zsync_state;
/* zsync_begin - load a zsync file and return data structure to use for the rest of the process.
@@ -95,3 +98,4 @@ void zsync_end_receive(struct zsync_receiver* zr);
* Returns 0 for success; if not, you should not submit more data. */
int zsync_receive_data(struct zsync_receiver* zr, const unsigned char* buf, off_t offset, size_t len);
+#endif

0 comments on commit 02ca8a1

Please sign in to comment.