~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to g10/keyring.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
{
159
159
  struct off_item *k;
160
160
 
 
161
  (void)off;
 
162
 
161
163
  for (k = tbl[(kid[1] & 0x07ff)]; k; k = k->next)
162
164
    {
163
165
      if (k->kid[0] == kid[0] && k->kid[1] == kid[1]) 
288
290
 
289
291
 
290
292
/*
291
 
 * Lock the keyring with the given handle, or unlok if yes is false.
 
293
 * Lock the keyring with the given handle, or unlock if YES is false.
292
294
 * We ignore the handle and lock all registered files.
293
295
 */
294
296
int 
297
299
    KR_NAME kr;
298
300
    int rc = 0;
299
301
 
 
302
    (void)hd;
 
303
 
300
304
    if (yes) {
301
305
        /* first make sure the lock handles are created */
302
306
        for (kr=kr_names; kr; kr = kr->next) {