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:   23-Oct-2007 19:02:11
  Branch: rpm-4_5                          Handle: 2007102318021000

  Modified files:           (Branch: rpm-4_5)
    rpm/rpmdb               header.c

  Log:
    - jbj: propagate rpmTagType and rpmTagCount internally to header.c.

  Summary:
    Revision    Changes     Path
    1.48.2.7    +17 -17     rpm/rpmdb/header.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmdb/header.c
  ============================================================================
  $ cvs diff -u -r1.48.2.6 -r1.48.2.7 header.c
  --- rpm/rpmdb/header.c        23 Oct 2007 16:50:12 -0000      1.48.2.6
  +++ rpm/rpmdb/header.c        23 Oct 2007 17:02:10 -0000      1.48.2.7
  @@ -324,7 +324,7 @@
   
       for (i = 0, entry = h->index; i < h->indexUsed; i++, entry++) {
        unsigned diff;
  -     int_32 type;
  +     rpmTagType type;
   
        /* Regions go in as is ... */
           if (ENTRY_IS_REGION(entry)) {
  @@ -368,7 +368,7 @@
    * @param pend               pointer to end of data (or NULL)
    * @return           no. bytes in data, -1 on failure
    */
  -static int dataLength(int_32 type, hPTR_t p, int_32 count, int onDisk,
  +static int dataLength(rpmTagType type, hPTR_t p, rpmTagCount count, int 
onDisk,
                /[EMAIL PROTECTED]@*/ hPTR_t pend)
        /[EMAIL PROTECTED]/
   {
  @@ -465,7 +465,7 @@
       memset(&ieprev, 0, sizeof(ieprev));
       for (; il > 0; il--, pe++) {
        struct indexEntry_s ie;
  -     int_32 type;
  +     rpmTagType type;
   
        ie.info.tag = ntohl(pe->tag);
        ie.info.type = ntohl(pe->type);
  @@ -603,7 +603,7 @@
       int_32 il = 0;
       int_32 dl = 0;
       indexEntry entry; 
  -    int_32 type;
  +    rpmTagType type;
       int i;
       int drlen, ndribbles;
       int driplen, ndrips;
  @@ -876,7 +876,7 @@
    * @return           header entry
    */
   static /[EMAIL PROTECTED]@*/
  -indexEntry findEntry(/[EMAIL PROTECTED]@*/ Header h, int_32 tag, int_32 type)
  +indexEntry findEntry(/[EMAIL PROTECTED]@*/ Header h, int_32 tag, rpmTagType 
type)
        /[EMAIL PROTECTED] h @*/
   {
       indexEntry entry, entry2, last;
  @@ -1434,7 +1434,7 @@
        /[EMAIL PROTECTED] *type, *p, *c @*/
        /[EMAIL PROTECTED] maxSet(type) >= 0 /\ maxSet(p) >= 0 /\ maxSet(c) >= 
0 @*/
   {
  -    int_32 count = entry->info.count;
  +    rpmTagCount count = entry->info.count;
       int rc = 1;              /* XXX 1 on success. */
   
       if (p)
  @@ -1814,7 +1814,7 @@
   
   /**
    */
  -static void copyData(int_32 type, /[EMAIL PROTECTED]@*/ void * dstPtr, const 
void * srcPtr,
  +static void copyData(rpmTagType type, /[EMAIL PROTECTED]@*/ void * dstPtr, 
const void * srcPtr,
                int_32 cnt, int dataLength)
        /[EMAIL PROTECTED] *dstPtr @*/
   {
  @@ -1850,7 +1850,7 @@
    */
   /[EMAIL PROTECTED]@*/
   static void *
  -grabData(int_32 type, hPTR_t p, int_32 c, /[EMAIL PROTECTED]@*/ int * 
lengthPtr)
  +grabData(rpmTagType type, hPTR_t p, int_32 c, /[EMAIL PROTECTED]@*/ int * 
lengthPtr)
        /[EMAIL PROTECTED] *lengthPtr @*/
        /[EMAIL PROTECTED] maxSet(lengthPtr) >= 0 @*/
   {
  @@ -3600,7 +3600,7 @@
    * @param element    (unused)
    * @return           formatted string
    */
  -static char * octalFormat(int_32 type, hPTR_t data, 
  +static char * octalFormat(rpmTagType type, hPTR_t data, 
                char * formatPrefix, int padding, /[EMAIL PROTECTED]@*/int 
element)
        /[EMAIL PROTECTED] formatPrefix @*/
   {
  @@ -3633,7 +3633,7 @@
    * @param element    (unused)
    * @return           formatted string
    */
  -static char * hexFormat(int_32 type, hPTR_t data, 
  +static char * hexFormat(rpmTagType type, hPTR_t data, 
                char * formatPrefix, int padding, /[EMAIL PROTECTED]@*/int 
element)
        /[EMAIL PROTECTED] formatPrefix @*/
   {
  @@ -3667,7 +3667,7 @@
    * @param strftimeFormat strftime(3) format
    * @return           formatted string
    */
  -static char * realDateFormat(int_32 type, hPTR_t data, 
  +static char * realDateFormat(rpmTagType type, hPTR_t data, 
                char * formatPrefix, int padding, /[EMAIL PROTECTED]@*/int 
element,
                const char * strftimeFormat)
        /[EMAIL PROTECTED] formatPrefix @*/
  @@ -3707,7 +3707,7 @@
    * @param element    (unused)
    * @return           formatted string
    */
  -static char * dateFormat(int_32 type, hPTR_t data, 
  +static char * dateFormat(rpmTagType type, hPTR_t data, 
                         char * formatPrefix, int padding, int element)
        /[EMAIL PROTECTED] formatPrefix @*/
   {
  @@ -3724,7 +3724,7 @@
    * @param element    (unused)
    * @return           formatted string
    */
  -static char * dayFormat(int_32 type, hPTR_t data, 
  +static char * dayFormat(rpmTagType type, hPTR_t data, 
                         char * formatPrefix, int padding, int element)
        /[EMAIL PROTECTED] formatPrefix @*/
   {
  @@ -3741,7 +3741,7 @@
    * @param element    (unused)
    * @return           formatted string
    */
  -static char * shescapeFormat(int_32 type, hPTR_t data, 
  +static char * shescapeFormat(rpmTagType type, hPTR_t data, 
                char * formatPrefix, int padding, /[EMAIL PROTECTED]@*/int 
element)
        /[EMAIL PROTECTED] formatPrefix @*/
   {
  @@ -3814,11 +3814,11 @@
   
       for (p = tagstocopy; *p != 0; p++) {
        char *s;
  -     int_32 type;
  -     int_32 count;
  +     rpmTagType type;
  +     rpmTagCount count;
        if (headerIsEntry(headerTo, *p))
            continue;
  -     if (!headerGetEntryMinMemory(headerFrom, *p, &type, &s, &count))
  +     if (!headerGetEntryMinMemory(headerFrom, *p, (hTYP_t)&type, &s, &count))
            continue;
        (void) headerAddEntry(headerTo, *p, type, s, count);
        s = headerFreeData(s, type);
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to