Update copyright notices to use a central AUTHORS file.
[cumulus.git] / ref.cc
diff --git a/ref.cc b/ref.cc
index 7e92b7a..c5a7768 100644 (file)
--- a/ref.cc
+++ b/ref.cc
@@ -1,7 +1,6 @@
-/* Cumulus: Smart Filesystem Backup to Dumb Servers
- *
- * Copyright (C) 2007  The Regents of the University of California
- * Written by Michael Vrable <mvrable@cs.ucsd.edu>
+/* Cumulus: Efficient Filesystem Backup to the Cloud
+ * Copyright (C) 2007-2008 The Cumulus Developers
+ * See the AUTHORS file for a list of contributors.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -25,6 +24,7 @@
 
 #include <assert.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <uuid/uuid.h>
@@ -99,7 +99,7 @@ string ObjectReference::to_string() const
         char buf[64];
         if (range_exact) {
             sprintf(buf, "[=%zu]", range_length);
-        } else if (range_start == 0) {
+        } else if (type == REF_ZERO) {
             sprintf(buf, "[%zu]", range_length);
         } else {
             sprintf(buf, "[%zu+%zu]", range_start, range_length);