httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/misc/win32 start.c
Date Tue, 14 Mar 2000 17:19:04 GMT
stoddard    00/03/14 09:19:04

  Modified:    src/lib/apr/misc/win32 start.c
  Log:
  Fix indenting
  
  Revision  Changes    Path
  1.13      +21 -21    apache-2.0/src/lib/apr/misc/win32/start.c
  
  Index: start.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/misc/win32/start.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- start.c	2000/03/10 00:06:21	1.12
  +++ start.c	2000/03/14 17:19:04	1.13
  @@ -119,28 +119,28 @@
   
   ap_status_t ap_get_oslevel(ap_context_t *cont, ap_oslevel_e *level)
   {
  -	static OSVERSIONINFO oslev;
  -	static BOOL first = TRUE;
  +    static OSVERSIONINFO oslev;
  +    static BOOL first = TRUE;
   
  -	if (first) {
  -		first = FALSE;
  -		GetVersionEx(&oslev);
  -	}
  -	if (oslev.dwPlatformId == VER_PLATFORM_WIN32_NT) {
  -		(*level) = APR_WIN_NT;
  -		return APR_SUCCESS;
  -	}
  -	else if (oslev.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
  -		if (oslev.dwMinorVersion == 0) {
  -			(*level) = APR_WIN_95;
  -			return APR_SUCCESS;
  -		}
  -		else if (oslev.dwMinorVersion > 0) {
  -			(*level) = APR_WIN_98;
  -			return APR_SUCCESS;
  -		}
  -	}
  -	return APR_EEXIST;
  +    if (first) {
  +        first = FALSE;
  +        GetVersionEx(&oslev);
  +    }
  +    if (oslev.dwPlatformId == VER_PLATFORM_WIN32_NT) {
  +        (*level) = APR_WIN_NT;
  +        return APR_SUCCESS;
  +    }
  +    else if (oslev.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
  +        if (oslev.dwMinorVersion == 0) {
  +            (*level) = APR_WIN_95;
  +            return APR_SUCCESS;
  +        }
  +        else if (oslev.dwMinorVersion > 0) {
  +            (*level) = APR_WIN_98;
  +            return APR_SUCCESS;
  +        }
  +    }
  +    return APR_EEXIST;
   }
   
   ap_status_t ap_set_userdata(void *data, char *key,
  
  
  

Mime
View raw message