Skip to content

Commit af2b95e

Browse files
committed
linenoise REFACTOR return value ignored
1 parent 0a8bcb4 commit af2b95e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lint/linenoise/linenoise.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ int linenoiseHistorySave(const char *filename) {
15631563
fp = fopen(filename,"w");
15641564
umask(old_umask);
15651565
if (fp == NULL) return -1;
1566-
chmod(filename,S_IRUSR|S_IWUSR);
1566+
(void)chmod(filename,S_IRUSR|S_IWUSR);
15671567
for (j = 0; j < history_len; j++)
15681568
fprintf(fp,"%s\n",history[j]);
15691569
fclose(fp);

0 commit comments

Comments
 (0)