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

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  [email protected]
  Module: rpm                              Date:   20-May-2009 18:47:48
  Branch: HEAD                             Handle: 2009052016474800

  Modified files:
    rpm/rpmdb               header.c

  Log:
    - remove unnecessary headerUnload swabbing.

  Summary:
    Revision    Changes     Path
    1.186       +0  -37     rpm/rpmdb/header.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmdb/header.c
  ============================================================================
  $ cvs diff -u -r1.185 -r1.186 header.c
  --- rpm/rpmdb/header.c        20 May 2009 15:36:47 -0000      1.185
  +++ rpm/rpmdb/header.c        20 May 2009 16:47:48 -0000      1.186
  @@ -845,45 +845,8 @@
        /* copy data w/ endian conversions */
        switch (entry->info.type) {
        case RPM_UINT64_TYPE:
  -     {   rpmuint32_t b[2];
  -         count = entry->info.count;
  -         src = entry->data;
  -         while (count--) {
  -             b[1] = (rpmuint32_t) htonl(((rpmuint32_t *)src)[0]);
  -             b[0] = (rpmuint32_t) htonl(((rpmuint32_t *)src)[1]);
  -             if (b[1] == ((rpmuint32_t *)src)[0])
  -                 memcpy(te, src, sizeof(b));
  -             else
  -                 memcpy(te, b, sizeof(b));
  -             te += sizeof(b);
  -             src += sizeof(b);
  -         }
  -     }   /*...@switchbreak@*/ break;
  -
        case RPM_UINT32_TYPE:
  -         count = entry->info.count;
  -         src = entry->data;
  -         while (count--) {
  -             *((rpmuint32_t *)te) = (rpmuint32_t) htonl(*((rpmuint32_t 
*)src));
  -             /*...@-sizeoftype@*/
  -             te += sizeof(rpmuint32_t);
  -             src += sizeof(rpmuint32_t);
  -             /*...@=sizeoftype@*/
  -         }
  -         /*...@switchbreak@*/ break;
  -
        case RPM_UINT16_TYPE:
  -         count = entry->info.count;
  -         src = entry->data;
  -         while (count--) {
  -             *((rpmuint16_t *)te) = (rpmuint16_t) htons(*((rpmuint16_t 
*)src));
  -             /*...@-sizeoftype@*/
  -             te += sizeof(rpmuint16_t);
  -             src += sizeof(rpmuint16_t);
  -             /*...@=sizeoftype@*/
  -         }
  -         /*...@switchbreak@*/ break;
  -
        default:
            memcpy(te, entry->data, entry->length);
            te += entry->length;
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to