Changeset 24042


Ignore:
Timestamp:
05/19/11 10:53:24 (10 years ago)
Author:
jmt12
Message:

Removing trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/tdb-edit/trunk/src/src/tdbget-src/tdbget.cpp

    r24003 r24042  
    4747/**
    4848 */
    49 void 
    50 printUsage (char *program_name) 
     49void
     50printUsage (char *program_name)
    5151{
    5252  cerr << "usage: " << program_name << " <database_path> <key>" << endl;
     
    5858 */
    5959int
    60 main (int argc, char *argv[]) 
     60main (int argc, char *argv[])
    6161{
    62 
    6362  // sanity check
    64   if (argc != 3) 
     63  if (argc != 3)
    6564  {
    6665    printUsage(argv[0]);
     
    7877    cerr << "couldn't create " << dbname << endl;
    7978    exit (0);
    80   } 
     79  }
    8180
    8281  TDB_DATA key;
     
    8685  TDB_DATA value = tdb_fetch (tdb, key);
    8786
    88   if (value.dsize > 0) 
     87  if (value.dsize > 0)
    8988  {
    9089    for (int i = 0; i < value.dsize; i++)
     
    9493    cout << endl; // used to be printf("\n");
    9594    free(value.dptr);
    96   } 
    97   else 
     95  }
     96  else
    9897  {
    9998    cout << endl; // used to be printf("\n");
    10099  }
    101100  free(key.dptr);
    102  
     101
    103102  tdb_close (tdb);
    104103  return 0;
Note: See TracChangeset for help on using the changeset viewer.