]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed compile issues with VS2005 build.
authorRobert Joly <rjoly@nortel.com>
Tue, 30 Sep 2008 02:12:38 +0000 (02:12 +0000)
committerRobert Joly <rjoly@nortel.com>
Tue, 30 Sep 2008 02:12:38 +0000 (02:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9755 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_time.c

index 6a60c9ff0eed7c2274d27f81ecab7c105f4d0dc4..bec5c9556f08b38edd72d57e278df8a63acab699 100644 (file)
@@ -1207,7 +1207,7 @@ static int tzparse(const char *name, register struct state * const sp, const int
 
                        sp->ttis[0].tt_gmtoff = -dstoffset;
                        sp->ttis[0].tt_isdst = 1;
-                       sp->ttis[0].tt_abbrind = stdlen + 1;
+                       sp->ttis[0].tt_abbrind = (int)(stdlen + 1);
                        sp->ttis[1].tt_gmtoff = -stdoffset;
                        sp->ttis[1].tt_isdst = 0;
                        sp->ttis[1].tt_abbrind = 0;
@@ -1318,7 +1318,7 @@ static int tzparse(const char *name, register struct state * const sp, const int
                        sp->ttis[0].tt_abbrind = 0;
                        sp->ttis[1].tt_gmtoff = -dstoffset;
                        sp->ttis[1].tt_isdst = TRUE;
-                       sp->ttis[1].tt_abbrind = stdlen + 1;
+                       sp->ttis[1].tt_abbrind = (int)(stdlen + 1);
                        sp->typecnt = 2;
                }
        } else {
@@ -1330,9 +1330,9 @@ static int tzparse(const char *name, register struct state * const sp, const int
                sp->ttis[0].tt_abbrind = 0;
        }
 
-       sp->charcnt = stdlen + 1;
+       sp->charcnt = (int)(stdlen + 1);
        if (dstlen != 0)
-               sp->charcnt += dstlen + 1;
+               sp->charcnt += (int)(dstlen + 1);
        if ((size_t) sp->charcnt > sizeof sp->chars)
                return -1;
        cp = sp->chars;
@@ -1359,7 +1359,7 @@ static void timesub(const time_t * const timep, const long offset, register cons
 {
        register const struct lsinfo *  lp;
        register long                   days;
-       register long                   rem;
+       register time_t                 rem;
        register int                    y;
        register int                    yleap;
        register const int *            ip;