RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Anders F. Björklund
  Root:   /v/rpm/cvs                       Email:  [email protected]
  Module: rpm                              Date:   21-Feb-2009 10:04:49
  Branch: HEAD                             Handle: 2009022109044800

  Modified files:
    rpm/rpmio               rpmz.c

  Log:
    sysctl syntax

  Summary:
    Revision    Changes     Path
    1.25        +2  -2      rpm/rpmio/rpmz.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmio/rpmz.c
  ============================================================================
  $ cvs diff -u -r1.24 -r1.25 rpmz.c
  --- rpm/rpmio/rpmz.c  21 Feb 2009 09:02:35 -0000      1.24
  +++ rpm/rpmio/rpmz.c  21 Feb 2009 09:04:48 -0000      1.25
  @@ -279,7 +279,7 @@
       {        int name[2] = { CTL_HW, HW_PHYSMEM };
        unsigned long mem;
        size_t mem_ptr_size = sizeof(mem);
  -     if (!sysctl(name, 2, &mem, &mem_ptr_size, NULL, NULL)) {
  +     if (!sysctl(name, 2, &mem, &mem_ptr_size, NULL, 0)) {
            if (mem_ptr_size != sizeof(mem)) {
                if (mem_ptr_size == sizeof(unsigned int))
                    ret = *(unsigned int *)(&mem);
  @@ -308,7 +308,7 @@
       {        int name[2] = { CTL_HW, HW_NCPU };
        int cpus;
        size_t cpus_size = sizeof(cpus);
  -     if (!sysctl(name, &cpus, &cpus_size, NULL, NULL)
  +     if (!sysctl(name, 2, &cpus, &cpus_size, NULL, 0)
         && cpus_size == sizeof(cpus) && cpus > 0)
            z->threads = (size_t)(cpus);
       }
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to