~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to lib/bind/nameser/ns_parse.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2006-01-05 12:29:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060105122928-oih7ttkkmpb90q8q
Tags: 1:9.3.2-1
* New upstream
* use lsb-base for start/stop messages in init.d.
* switch to debhelper 4

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 */
17
17
 
18
18
#ifndef lint
19
 
static const char rcsid[] = "$Id: ns_parse.c,v 1.3.2.1.4.1 2004/03/09 08:33:44 marka Exp $";
 
19
static const char rcsid[] = "$Id: ns_parse.c,v 1.3.2.1.4.3 2005/10/11 00:48:16 marka Exp $";
20
20
#endif
21
21
 
22
22
/* Import. */
40
40
 
41
41
/* Macros. */
42
42
 
 
43
#ifndef SOLARIS2
43
44
#define RETERR(err) do { errno = (err); return (-1); } while (0)
 
45
#else
 
46
#define RETERR(err) \
 
47
        do { errno = (err); if (errno == errno) return (-1); } while (0)
 
48
#endif
44
49
 
45
50
/* Public. */
46
51
 
135
140
        int tmp;
136
141
 
137
142
        /* Make section right. */
138
 
        if ((tmp = section) < 0 || section >= ns_s_max)
 
143
        tmp = section;
 
144
        if (tmp < 0 || section >= ns_s_max)
139
145
                RETERR(ENODEV);
140
146
        if (section != handle->_sect)
141
147
                setsection(handle, section);