X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=ref.cc;h=c5a7768eb5504ec0a13b1dd5d7b14a912d9c4d37;hp=7e92b7a7fa06cd0d84c4832dfcce332edaa28f9a;hb=f546e4df51cde51dd984e4ad26e70dd7533f9791;hpb=260aaf269765b6fdf0c74ec51615e38a70b27fa3 diff --git a/ref.cc b/ref.cc index 7e92b7a..c5a7768 100644 --- 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 +/* 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 #include +#include #include #include #include @@ -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);