X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Flibcfs_time.h;h=946c2be7d52006004432e7ecaa2b9c1e66ad8de3;hb=3ba1cf51e65cb90c0a8746b6b93d93ffee9fef2f;hp=f165c67090e84d0615d5af3cdaecebf539ddc699;hpb=421d7a675265d697a1a9308aa9dac8030eab497a;p=fs%2Flustre-release.git diff --git a/libcfs/include/libcfs/libcfs_time.h b/libcfs/include/libcfs/libcfs_time.h index f165c67..946c2be 100644 --- a/libcfs/include/libcfs/libcfs_time.h +++ b/libcfs/include/libcfs/libcfs_time.h @@ -16,8 +16,8 @@ * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License - * version 2 along with this program; If not, see [sun.com URL with a - * copy of GPLv2]. + * version 2 along with this program; If not, see + * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or @@ -47,12 +47,12 @@ static inline cfs_time_t cfs_time_add(cfs_time_t t, cfs_duration_t d) { - return t + d; + return (cfs_time_t)(t + d); } static inline cfs_duration_t cfs_time_sub(cfs_time_t t1, cfs_time_t t2) { - return t1 - t2; + return (cfs_time_t)(t1 - t2); } static inline int cfs_time_before(cfs_time_t t1, cfs_time_t t2)