summaryrefslogtreecommitdiff
path: root/testing/Messenger_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-13 11:50:33 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-13 11:50:33 -0400
commitf93e23e4113aada569c49e3554fbd35556ff5ac1 (patch)
tree256cb8b63e7c86fcabb823d2ae5fe95909432de3 /testing/Messenger_test.c
parent97f449a2f1aa3e4fbe7f2d853efa0c7935ded967 (diff)
Updated some files.
Diffstat (limited to 'testing/Messenger_test.c')
-rw-r--r--testing/Messenger_test.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c
index fa5d6890..2e2bedc3 100644
--- a/testing/Messenger_test.c
+++ b/testing/Messenger_test.c
@@ -119,16 +119,18 @@ int main(int argc, char *argv[])
119 119
120 printf("OUR ID: "); 120 printf("OUR ID: ");
121 uint32_t i; 121 uint32_t i;
122 for(i = 0; i < 32; i++) { 122 uint8_t address[FRIEND_ADDRESS_SIZE];
123 if(self_public_key[i] < 16) 123 getaddress(m, address);
124 for(i = 0; i < FRIEND_ADDRESS_SIZE; i++) {
125 if(address[i] < 16)
124 printf("0"); 126 printf("0");
125 printf("%hhX",self_public_key[i]); 127 printf("%hhX",address[i]);
126 } 128 }
127 129
128 setname(m, (uint8_t *)"Anon", 5); 130 setname(m, (uint8_t *)"Anon", 5);
129 131
130 char temp_id[128]; 132 char temp_id[128];
131 printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n"); 133 printf("\nEnter the address of the friend you wish to add (38 bytes HEX format):\n");
132 if(scanf("%s", temp_id) != 1) { 134 if(scanf("%s", temp_id) != 1) {
133 return 1; 135 return 1;
134 } 136 }