summaryrefslogtreecommitdiff
path: root/lib/piece.c
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2015-03-31 16:33:20 -0300
committerRaúl Benencia <rul@kalgan.cc>2015-03-31 16:33:20 -0300
commit30624a2bf3717e64a2134306a74d48463d8f14d4 (patch)
tree6fa0deb08a5f6c4f853b782ab6334ee203e65260 /lib/piece.c
parentce79ee81e7d4e41c83612748160c85c0b0effdcd (diff)
rename new_piece to piece_new in order to follow general convention
Diffstat (limited to 'lib/piece.c')
-rw-r--r--lib/piece.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/piece.c b/lib/piece.c
index 091d0a5..036a9a3 100644
--- a/lib/piece.c
+++ b/lib/piece.c
@@ -54,7 +54,7 @@ int piece_character(Piece p) {
#endif
-Piece* new_piece(Color c, PieceType t) {
+Piece* piece_new(Color c, PieceType t) {
Piece* p = malloc(sizeof(Piece));
p->color = c; p->type = t;
nihil fit ex nihilo