Ignore:
Timestamp:
May 29, 2008, 12:22:03 PM (17 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.0rc1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/nsswitch/libwbclient/wbclient.c

    r133 r136  
    116116
    117117        return "unknown wbcErr value";
    118 };
     118}
    119119
    120120/** @brief Free library allocated memory
     
    133133}
    134134
     135wbcErr wbcLibraryDetails(struct wbcLibraryDetails **_details)
     136{
     137        wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
     138        struct wbcLibraryDetails *info;
     139
     140        info = talloc(NULL, struct wbcLibraryDetails);
     141        BAIL_ON_PTR_ERROR(info, wbc_status);
     142
     143        info->major_version = WBCLIENT_MAJOR_VERSION;
     144        info->minor_version = WBCLIENT_MINOR_VERSION;
     145        info->vendor_version = talloc_strdup(info,
     146                                             WBCLIENT_VENDOR_VERSION);
     147        BAIL_ON_PTR_ERROR(info->vendor_version, wbc_status);
     148
     149        *_details = info;
     150        info = NULL;
     151
     152        wbc_status = WBC_ERR_SUCCESS;
     153
     154done:
     155        talloc_free(info);
     156        return wbc_status;
     157}
    135158
    136159
Note: See TracChangeset for help on using the changeset viewer.