~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to ports/winnt/libntp/SetSystemTime.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-11-26 22:16:37 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20091126221637-lbtdp0ax1yg9t0bx
Tags: 1:4.2.4p7+dfsg-4
* Use uname -s instead of dpkg-architecture to found the kernel we're
  running on.  dpkg-architecture is part of dpkg-dev. (Closes: #558145)
* Make the package fail to build on hurd since it does not provided
  the needed system calls for ntpd to work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
{
13
13
        SYSTEMTIME st;
14
14
        struct tm *gmtm;
15
 
        long x = tv->tv_sec;
 
15
        const time_t x = tv->tv_sec;
16
16
        long y = tv->tv_usec;
17
17
        (void) tzp;
18
18
 
19
 
        gmtm = gmtime((const time_t *) &x);
 
19
        gmtm = gmtime(&x);
20
20
        st.wSecond              = (WORD) gmtm->tm_sec;
21
21
        st.wMinute              = (WORD) gmtm->tm_min;
22
22
        st.wHour                = (WORD) gmtm->tm_hour;