~ubuntu-branches/debian/squeeze/nginx/squeeze

« back to all changes in this revision

Viewing changes to src/os/unix/ngx_errno.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella
  • Date: 2009-05-31 18:38:56 UTC
  • mfrom: (1.1.10 upstream) (4.1.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20090531183856-3xhvf6wd0bw5556i
Tags: 0.7.59-1
* New upstream release, first in Debian for the 0.7 branch. Among other
  issues, it also fixes the problem with wildcard dns names used with SSL.
  (Closes: #515904)
* debian/watch: updated.
* debian/postinst: fixed a bashism. (Closes: #507913)
* debian/conf/nginx.conf: removed default_type. (Closes: #509390)
* debian/control: updated Standards-Version to 3.8.1, no changes needed.
* debian/NEWS.Debian: documented the issues with
  server_names_hash_bucket_size. (Closes: #524785)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
#if (NGX_HAVE_STRERROR_R)
12
12
 
13
 
u_char *ngx_strerror_r(int err, u_char *errstr, size_t size)
 
13
u_char *
 
14
ngx_strerror_r(int err, u_char *errstr, size_t size)
14
15
{
15
16
    if (size == 0) {
16
 
        return 0;
 
17
        return errstr;
17
18
    }
18
19
 
19
20
    errstr[0] = '\0';
32
33
 
33
34
/* Linux strerror_r() */
34
35
 
35
 
u_char *ngx_strerror_r(int err, u_char *errstr, size_t size)
 
36
u_char *
 
37
ngx_strerror_r(int err, u_char *errstr, size_t size)
36
38
{
37
39
    char  *str;
38
40
 
39
41
    if (size == 0) {
40
 
        return 0;
 
42
        return errstr;
41
43
    }
42
44
 
43
45
    errstr[0] = '\0';