]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Change round() to bround() to avoid library definition conflict
authorKern Sibbald <kern@sibbald.com>
Fri, 1 Mar 2019 12:10:46 +0000 (13:10 +0100)
committerKern Sibbald <kern@sibbald.com>
Fri, 1 Mar 2019 12:10:46 +0000 (13:10 +0100)
bacula/src/lib/bsnprintf.c

index 09be60da479b276788d59c92f4f6ee1f16407bd9..80815f1c95cb5d23c51b5613823f066b8189d9ae 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula(R) - The Network Backup Solution
 
-   Copyright (C) 2000-2016 Kern Sibbald
+   Copyright (C) 2000-2019 Kern Sibbald
 
    The original author of Bacula is Kern Sibbald, with contributions
    from many others, a complete list can be found in the file AUTHORS.
@@ -619,7 +619,7 @@ static LDOUBLE pow10(int exp)
    return result;
 }
 
-static int64_t round(LDOUBLE value)
+static int64_t bround(LDOUBLE value)
 {
    int64_t intpart;
 
@@ -685,7 +685,7 @@ static int32_t fmtfp(char *buffer, int32_t currlen, int32_t maxlen,
    /* We "cheat" by converting the fractional part to integer by
     * multiplying by a factor of 10
     */
-   fracpart = round((pow10(max)) * (ufvalue - intpart));
+   fracpart = bround((pow10(max)) * (ufvalue - intpart));
 
    if (fracpart >= pow10(max)) {
       intpart++;