Skip to content

Commit

Permalink
Make size_float static.
Browse files Browse the repository at this point in the history
This isn't used outside of `dbbpack.c`.
  • Loading branch information
waywardmonkeys committed Sep 26, 2023
1 parent 5282c1e commit 96d1215
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/dbpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Float read_float(const cBuf *buf, Long *buf_pos)
}

/* Determine the size of a Float */
Int size_float(Float f, bool memory_size)
static Int size_float(Float f, bool memory_size)
{
return sizeof(Float);
}
Expand Down
1 change: 0 additions & 1 deletion src/include/dbpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Int size_object(Obj * obj, bool memory_size);
Int size_data(cData *data, bool memory_size);
Int size_ident(Ident id, bool memory_size);
Int size_long(Long n, bool memory_size);
Int size_float(Float f, bool memory_size);

#endif

0 comments on commit 96d1215

Please sign in to comment.