Changeset 4022

Show
Ignore:
Timestamp:
04/02/06 23:42:11 (3 years ago)
Author:
morris
Message:

Sync with wire

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/trunk/config.h.in

    r4016 r4022  
    6464#undef WD_BUGREPORT 
    6565 
    66 /* Host CPU */ 
    67 #undef WD_CPU 
    68  
    6966/* Group name */ 
    7067#undef WD_GROUP 
  • wired/trunk/configure

    r4016 r4022  
    14221422cat >>confdefs.h <<\_ACEOF 
    14231423#define WD_BUGREPORT "axel@zankasoftware.com" 
    1424 _ACEOF 
    1425  
    1426  
    1427 cat >>confdefs.h <<_ACEOF 
    1428 #define WD_CPU "$host_cpu" 
    14291424_ACEOF 
    14301425 
  • wired/trunk/configure.in

    r4016 r4022  
    1212AC_DEFINE([WD_PROTOCOL_VERSION], ["1.1"], [Protocol version]) 
    1313AC_DEFINE([WD_BUGREPORT], ["AC_PACKAGE_BUGREPORT"], [Maintainer's email address]) 
    14 AC_DEFINE_UNQUOTED([WD_CPU], ["$host_cpu"], [Host CPU]) 
    1514 
    1615# These are used in the Makefile 
  • wired/trunk/wired/version.c

    r3745 r4022  
    2828 
    2929#include "config.h" 
    30 #include "version.h" 
    3130 
    3231#ifdef HAVE_CORESERVICES_CORESERVICES_H 
     
    3433#endif 
    3534 
    36 #include <sys/utsname.h> 
    3735#include <openssl/ssl.h> 
    3836#include <wired/wired.h> 
     37 
     38#include "version.h" 
    3939 
    4040wi_string_t                                     *wd_version_string; 
     
    4444 
    4545void wd_init_version(void) { 
    46         struct utsname          name; 
    47          
    48         uname(&name); 
    49          
    5046        wd_version_string                       = wi_string_init_with_cstring(wi_string_alloc(), WD_VERSION); 
    5147        wd_protocol_version_string      = wi_string_init_with_cstring(wi_string_alloc(), WD_PROTOCOL_VERSION); 
    5248 
    5349#ifdef HAVE_CORESERVICES_CORESERVICES_H 
    54         wd_server_version_string        = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wired/%@ (%s; %s; %s) (%s; CoreFoundation %.1f)"), 
     50        wd_server_version_string        = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wired/%@ (%@; %@; %@) (%s; CoreFoundation %.1f)"), 
    5551                wd_version_string, 
    56                 name.sysname
    57                 name.release
    58                 WD_CPU
     52                wi_process_os_name(wi_process())
     53                wi_process_os_release(wi_process())
     54                wi_process_os_arch(wi_process())
    5955                SSLeay_version(SSLEAY_VERSION), 
    6056                kCFCoreFoundationVersionNumber); 
    6157#else 
    62         wd_server_version_string        = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wired/%@ (%s; %s; %s) (%s)"), 
     58        wd_server_version_string        = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wired/%@ (%@; %@; %@) (%s)"), 
    6359                wd_version_string, 
    64                 name.sysname
    65                 name.release
    66                 WD_CPU
     60                wi_process_os_name(wi_process())
     61                wi_process_os_release(wi_process())
     62                wi_process_os_arch(wi_process())
    6763                SSLeay_version(SSLEAY_VERSION)); 
    6864#endif