diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-06-04 21:28:33 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-04 21:28:33 +0400 |
commit | 9cf783074fd7793ebb6859e7f62b054d79074efe (patch) | |
tree | b5bd9726d10952b0fab24754e2af210a9b644682 /src/os/unix/ngx_freebsd_init.c | |
parent | 1c10462e88491d52a23e22fbc3ca0012591df095 (diff) |
nginx-0.0.1-2003-06-04-21:28:33 import
Diffstat (limited to 'src/os/unix/ngx_freebsd_init.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/unix/ngx_freebsd_init.c b/src/os/unix/ngx_freebsd_init.c index e01f9b613..6eae456ed 100644 --- a/src/os/unix/ngx_freebsd_init.c +++ b/src/os/unix/ngx_freebsd_init.c @@ -56,7 +56,7 @@ int ngx_os_init(ngx_log_t *log) size_t size; ngx_err_t err; - size = 20; + size = sizeof(ngx_freebsd_kern_ostype); if (sysctlbyname("kern.ostype", ngx_freebsd_kern_ostype, &size, NULL, 0) == -1) { ngx_log_error(NGX_LOG_ALERT, log, errno, @@ -64,7 +64,7 @@ int ngx_os_init(ngx_log_t *log) return NGX_ERROR; } - size = 20; + size = sizeof(ngx_freebsd_kern_osrelease); if (sysctlbyname("kern.osrelease", ngx_freebsd_kern_osrelease, &size, NULL, 0) == -1) { ngx_log_error(NGX_LOG_ALERT, log, errno, @@ -76,7 +76,7 @@ int ngx_os_init(ngx_log_t *log) ngx_freebsd_kern_ostype, ngx_freebsd_kern_osrelease); - size = 4; + size = sizeof(int); if (sysctlbyname("kern.osreldate", &ngx_freebsd_kern_osreldate, &size, NULL, 0) == -1) { ngx_log_error(NGX_LOG_ALERT, log, errno, |