aboutsummaryrefslogtreecommitdiff
path: root/contactList.c
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-02-06 05:38:02 +0100
committerache <ache@ache.one>2019-02-06 05:38:02 +0100
commitdac4b31e5e5591e5dd0fbba48fa4b9fcce744c8e (patch)
tree5e873b5769d4d09512e712f336a621de0dd492fb /contactList.c
parentgcc11 (diff)
Debug mode
Diffstat (limited to 'contactList.c')
-rw-r--r--contactList.c6
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
}
}