lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

001-printf-fix.patch (1861B)


      1 --- a/tdbtool.c	2001-12-11 06:45:47.000000000 +0300
      2 +++ b/tdbtool.c	2014-11-14 15:14:00.401164300 +0300
      3 @@ -169,23 +169,21 @@ static void print_data(unsigned char *bu
      4  
      5  static void help(void)
      6  {
      7 -	printf("
      8 -tdbtool: 
      9 -  create    dbname     : create a database
     10 -  open      dbname     : open an existing database
     11 -  erase                : erase the database
     12 -  dump      dumpname   : dump the database as strings
     13 -  insert    key  data  : insert a record
     14 -  store     key  data  : store a record (replace)
     15 -  show      key        : show a record by key
     16 -  delete    key        : delete a record by key
     17 -  list                 : print the database hash table and freelist
     18 -  free                 : print the database freelist
     19 -  1 | first            : print the first record
     20 -  n | next             : print the next record
     21 -  q | quit             : terminate
     22 -  \\n                   : repeat 'next' command
     23 -");
     24 +	printf("tdbtool:\n");
     25 +	printf("  create    dbname     : create a database\n");
     26 +	printf("  open      dbname     : open an existing database\n");
     27 +	printf("  erase                : erase the database\n");
     28 +	printf("  dump      dumpname   : dump the database as strings\n");
     29 +	printf("  insert    key  data  : insert a record\n");
     30 +	printf("  store     key  data  : store a record (replace)\n");
     31 +	printf("  show      key        : show a record by key\n");
     32 +	printf("  delete    key        : delete a record by key\n");
     33 +	printf("  list                 : print the database hash table and freelist\n");
     34 +	printf("  free                 : print the database freelist\n");
     35 +	printf("  1 | first            : print the first record\n");
     36 +	printf("  n | next             : print the next record\n");
     37 +	printf("  q | quit             : terminate\n");
     38 +	printf("  \\n                   : repeat 'next' command\n\n");
     39  }
     40  
     41  static void terror(char *why)