mirror of
https://github.com/theoludwig/libcproject.git
synced 2024-12-11 21:13:00 +01:00
fix: set_version typings
This commit is contained in:
parent
074d9e0acb
commit
c5a7bbf7c1
@ -13,7 +13,7 @@ int main(int argc, string_t* argv) {
|
|||||||
content = string_concatenate(content, argv[1]);
|
content = string_concatenate(content, argv[1]);
|
||||||
content = string_concatenate(content, "\"\n\n");
|
content = string_concatenate(content, "\"\n\n");
|
||||||
content = string_concatenate(content, "#endif\n");
|
content = string_concatenate(content, "#endif\n");
|
||||||
int result = filesystem_write("./version.h", content, string_get_length(content));
|
int result = filesystem_write("./version.h", (byte_t*)content, string_get_length(content));
|
||||||
if (result == -1) {
|
if (result == -1) {
|
||||||
fprintf(stderr, "Error: Could not write to file.\n");
|
fprintf(stderr, "Error: Could not write to file.\n");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user