IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26531


Ignore:
Timestamp:
Jan 7, 2010, 11:59:33 AM (16 years ago)
Author:
Paul Price
Message:

Fix compilation error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psLib/src/types/psMetadata.c

    r26524 r26531  
    622622
    623623// may need to extend this to change the keyname in the copy
    624 bool psMetadataItemSupplement(bool *status, 
    625                               psMetadata *out,
     624bool psMetadataItemSupplement(bool *status,
     625                              psMetadata *out,
    626626                              const psMetadata *in,
    627627                              const char *key)
     
    633633    psMetadataItem *item = psMetadataLookup(in, key);
    634634    if (!item) {
    635         if (status) {
    636             *status = false;
    637         } else {
    638             psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Could not find '%s' in metadata.\n", key);
    639         }
     635        if (status) {
     636            *status = false;
     637        } else {
     638            psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Could not find '%s' in metadata.\n", key);
     639        }
    640640        return false;
    641641    }
     
    977977{
    978978    PS_ASSERT_METADATA_NON_NULL(md, false);
    979 
    980     psList* mdList = md->list;
    981     psHash* mdTable = md->hash;
    982 
    983     psMetadataItem* entry = psListGet(mdList, location);
    984     if (entry == NULL) return NULL;
    985 
    986     return entry;
     979    return psListGet(md->list, location);
    987980}
    988981
Note: See TracChangeset for help on using the changeset viewer.