diff options
Diffstat (limited to 'contactList.c')
-rw-r--r-- | contactList.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contactList.c b/contactList.c index a5c7107..cbc3b24 100644 --- a/contactList.c +++ b/contactList.c @@ -73,7 +73,7 @@ int fillContactList(char* filename) { } if( !file ) { - perror("Unable to read contact file"); + fprintf(stderr, "Unable to read contact file: "); return 1; } @@ -83,7 +83,7 @@ int fillContactList(char* filename) { if( c == ';' ) { v++; if( v >= 3) { - perror("Invalid format (contact file) : too many field"); + fprintf(stderr, "Invalid format (contact file) : too many field"); return 2; // Invalid } } @@ -93,7 +93,7 @@ int fillContactList(char* filename) { nbContacts++; } else {// Not enougth - perror("Invalid format (contact file) : not enougth field"); + fprintf(stderr, "Invalid format (contact file) : not enougth field"); return 2; // Invalid format } } |