~ubuntu-branches/ubuntu/gutsy/ntp/gutsy

« back to all changes in this revision

Viewing changes to libntp/recvbuff.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-18 22:41:56 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070518224156-563ruqxsxvqvoy8h
Tags: 1:4.2.4p0+dfsg-1ubuntu1
* Merge from Debian unstable.
* Remaining Ubuntu changes:
  - Update version in conflicts/replaces to that which was shipped in edgy,
    which was later than that in Debian (due to the ubuntuX).
  - Change default server to ntp.ubuntu.com.
  - Remove stop links from rc0 and rc6
  - Call dh_installinit with --error-handler
  - Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
static int
78
78
create_buffers(int nbufs)
79
79
{
80
 
        register recvbuf_t *buf;
 
80
        register recvbuf_t *bufp;
81
81
        int i;
82
 
        buf = (recvbuf_t *) emalloc(nbufs*sizeof(recvbuf_t));
 
82
 
 
83
        bufp = (recvbuf_t *) emalloc(nbufs*sizeof(recvbuf_t));
83
84
        /*
84
85
         * If no memory available, Bail
85
86
         */
86
 
        if (buf == NULL)
 
87
        if (bufp == NULL)
87
88
                return (0);
88
89
        for (i = 0; i < nbufs; i++)
89
90
        {
90
 
                ISC_LIST_APPEND(free_list, buf, link);
91
 
                buf++;
 
91
                ISC_LIST_APPEND(free_list, bufp, link);
 
92
                bufp++;
92
93
                free_recvbufs++;
93
94
                total_recvbufs++;
94
95
        }