Commit 2062b2ef authored by Sergej Chodarev's avatar Sergej Chodarev
Browse files

Rename unlike to dislike

parent 5d9d3029
...@@ -22,7 +22,7 @@ void like_post(post_t *post) { ...@@ -22,7 +22,7 @@ void like_post(post_t *post) {
post->like_count++; post->like_count++;
} }
void unlike_post(post_t *post) { void dislike_post(post_t *post) {
if (post->like_count > 0) if (post->like_count > 0)
post->like_count--; post->like_count--;
} }
......
...@@ -13,7 +13,7 @@ typedef struct { ...@@ -13,7 +13,7 @@ typedef struct {
post_t *create_post(char *text); post_t *create_post(char *text);
void destroy_post(post_t *post); void destroy_post(post_t *post);
void like_post(post_t *post); void like_post(post_t *post);
void unlike_post(post_t *post); void dislike_post(post_t *post);
char *like_count_text(post_t *post, char *buf); char *like_count_text(post_t *post, char *buf);
#endif /* POST_H */ #endif /* POST_H */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment