diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common.c | 6 | ||||
-rw-r--r-- | src/lutris.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/common.c b/src/common.c index 17edbd9..29aa3db 100644 --- a/src/common.c +++ b/src/common.c @@ -12,18 +12,18 @@ void print_help(const struct Command* commands, const size_t size) { - int longestCommand = 0; + size_t longestCommand = 0; for (size_t i = 0; i < size; ++i) { - int commandLength = strlen(commands[i].name); + size_t commandLength = strlen(commands[i].name); if (commandLength > longestCommand) longestCommand = commandLength; } for (size_t i = 0; i < size; ++i) { - printf("\t%-*s\t %s\n", longestCommand, commands[i].name, commands[i].description); + printf("\t%-*s\t %s\n", (int)longestCommand, commands[i].name, commands[i].description); } } diff --git a/src/lutris.c b/src/lutris.c index 4bc0f0f..b80d830 100644 --- a/src/lutris.c +++ b/src/lutris.c @@ -22,7 +22,7 @@ COMMAND(lutris, install) if (argc == 2) { struct script_t installer = lutris_getInstaller(argv[1]); - char inp; + int inp; if (installer.error == NONE) { @@ -30,7 +30,7 @@ COMMAND(lutris, install) printf("Install %s - %s to the current directory?\nThis may download files and install wine versions\n(y/n)\n", installer.name, installer.version); - if ((inp=getchar()) == 'y') + if ((inp = getchar()) == 'y') { // fetch all files required by installer // TODO: think about storing files on disk for larger files |