FreeCalypso > hg > freecalypso-hwlab
comparison simtool/pbcommon.c @ 105:b1bf0ec6fff5
fc-simtool: pb-dump: first round of bugfixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 25 Jan 2021 05:59:33 +0000 |
parents | a60645b75a57 |
children |
comparison
equal
deleted
inserted
replaced
104:a60645b75a57 | 105:b1bf0ec6fff5 |
---|---|
37 char *reqname; | 37 char *reqname; |
38 { | 38 { |
39 struct map *tp; | 39 struct map *tp; |
40 int rc; | 40 int rc; |
41 | 41 |
42 for (tp = phonebook_map; *tp->user_name; tp++) | 42 for (tp = phonebook_map; tp->user_name; tp++) |
43 if (!strcmp(tp->user_name, reqname)) | 43 if (!strcmp(tp->user_name, reqname)) |
44 break; | 44 break; |
45 if (!tp->canon_name) { | 45 if (!tp->canon_name) { |
46 fprintf(stderr, "error: phone book name \"%s\" not known", | 46 fprintf(stderr, "error: phone book name \"%s\" not known\n", |
47 reqname); | 47 reqname); |
48 return(-1); | 48 return(-1); |
49 } | 49 } |
50 rc = select_op(DF_TELECOM); | 50 rc = select_op(DF_TELECOM); |
51 if (rc < 0) | 51 if (rc < 0) |