From 6321be300b804894c8c150fac8749741b13dfb2d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 4 Apr 2021 14:10:26 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- set-contact-birthday.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'set-contact-birthday.c') diff --git a/set-contact-birthday.c b/set-contact-birthday.c index 535e635..9db0987 100644 --- a/set-contact-birthday.c +++ b/set-contact-birthday.c @@ -64,10 +64,12 @@ main(int argc, char *argv[]) if (before_on_common == 0) usage(); before_on_common = 1; + break; case 'B': if (before_on_common == 1) usage(); before_on_common = 0; + break; case 'u': remove = 1; break; @@ -114,7 +116,7 @@ main(int argc, char *argv[]) if (day) contact.birthday->day = day < 0 ? 0 : (unsigned char)day; if (before_on_common >= 0) - contact.birthday->before_on_common = before_on_common; + contact.birthday->before_on_common = (unsigned char)before_on_common; } if (libcontacts_save_contact(&contact, user)) { weprintf("libcontacts_save_contact %s:", *argv); -- cgit v1.2.3-70-g09d2