mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:50:00 -04:00
Change isc_win32_version_check name to isc_win32_versioncheck and fix return value to be as reported in the header
This commit is contained in:
parent
70406959df
commit
834aa90500
2 changed files with 12 additions and 12 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: win32os.h,v 1.1 2002/08/01 03:54:30 mayer Exp $ */
|
||||
/* $Id: win32os.h,v 1.2 2002/08/03 01:36:24 mayer Exp $ */
|
||||
|
||||
#ifndef ISC_WIN32OS_H
|
||||
#define ISC_WIN32OS_H 1
|
||||
|
|
@ -54,7 +54,7 @@ isc_win32os_servicepackminor(void);
|
|||
*/
|
||||
|
||||
int
|
||||
isc_win32os_version_check(unsigned int major, unsigned int minor,
|
||||
isc_win32os_versioncheck(unsigned int major, unsigned int minor,
|
||||
unsigned int updatemajor, unsigned int updateminor);
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: win32os.c,v 1.1 2002/08/01 03:40:21 mayer Exp $ */
|
||||
/* $Id: win32os.c,v 1.2 2002/08/03 01:36:24 mayer Exp $ */
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
|
|
@ -74,27 +74,27 @@ isc_win32os_servicepackminor(void) {
|
|||
}
|
||||
|
||||
int
|
||||
isc_win32os_version_check(unsigned int major, unsigned int minor,
|
||||
isc_win32os_versioncheck(unsigned int major, unsigned int minor,
|
||||
unsigned int spmajor, unsigned int spminor) {
|
||||
|
||||
initialize_action();
|
||||
|
||||
if (major < isc_win32os_majorversion())
|
||||
return (-1);
|
||||
return (1);
|
||||
if (major > isc_win32os_majorversion())
|
||||
return (1);
|
||||
return (-1);
|
||||
if (minor < isc_win32os_minorversion())
|
||||
return (-1);
|
||||
return (1);
|
||||
if (minor > isc_win32os_minorversion())
|
||||
return (1);
|
||||
return (-1);
|
||||
if (spmajor < isc_win32os_servicepackmajor())
|
||||
return (-1);
|
||||
return (1);
|
||||
if (spmajor > isc_win32os_servicepackmajor())
|
||||
return (1);
|
||||
if (spminor < isc_win32os_servicepackminor())
|
||||
return (-1);
|
||||
if (spminor > isc_win32os_servicepackminor())
|
||||
if (spminor < isc_win32os_servicepackminor())
|
||||
return (1);
|
||||
if (spminor > isc_win32os_servicepackminor())
|
||||
return (-1);
|
||||
|
||||
/* Exact */
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue