* Fix help message in radiff2

This commit is contained in:
pancake 2011-05-13 12:14:00 +02:00
parent 425fe596f4
commit 80492f5620
3 changed files with 9 additions and 13 deletions

3
TODO
View File

@ -17,6 +17,7 @@ To wipe:
To do:
======
* Handle ^C in searches (at least)
* libmagic internal :? -- find a decent implementation and adopt it
* Ranged/scrollable zoom mode
* Add r_cons_prompt () ... calling set_prompt + fgets -- this api needs cleanup
@ -76,7 +77,6 @@ nibble
capi_x
------
* code analysis for msil
* Fix avr/ppc code analysis // fix or use or what? :)
earada
------
@ -106,7 +106,6 @@ earada
CORE
----
- Handle ^C in searches (at least)
- Add support for DEX file format
- display filesize info instead of virtual space address limit

View File

@ -49,11 +49,9 @@ static void diff_graph(RCore *c, RCore *c2, const char *arg) {
static void diff_bins(RCore *c, RCore *c2) {
const char *match;
RList *fcns;
RListIter *iter;
RAnalFcn *f;
fcns = r_anal_get_fcns (c->anal);
RList *fcns = r_anal_get_fcns (c->anal);
r_list_foreach (fcns, iter, f) {
switch (f->type) {
case R_ANAL_FCN_TYPE_FCN:
@ -87,11 +85,12 @@ static int show_help(int line) {
printf ("Usage: radiff2 [-nsdl] [file] [file]\n");
if (!line) printf (
// " -l diff lines of text\n"
" -s calculate text distance\n"
" -c count of changes\n"
" -r radare commands\n"
" -C graphdiff code\n"
" -d use delta diffing\n"
" -g [sym] graph diff\n"
" -r radare commands\n"
" -s calculate text distance\n"
" -v use vaddr\n"
" -V show version information\n");
return 1;
@ -109,15 +108,13 @@ int main(int argc, char **argv) {
const char *addr = NULL;
RCore *c, *c2;
RDiff *d;
int o, delta = 0;
char *file, *file2;
ut8 *bufa, *bufb;
int sza, szb, rad = 0, va = 0;
int mode = MODE_DIFF;
int showcount = 0;
int o, sza, szb, rad = 0, va = 0, delta = 0;
int showcount = 0, mode = MODE_DIFF;
double sim;
while ((o = getopt (argc, argv, "Cvg:rhcdlsV")) != -1) {
while ((o = getopt (argc, argv, "Cvg:rhcdsV")) != -1) {
switch (o) {
case 'v':
va = 1;

View File

@ -66,7 +66,7 @@
#include <grub/disk.h>
#include <grub/dl.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#ifdef MM_DEBUG