Skip to content

Commit

Permalink
(extract_line): remove extra const qualifier erroneously introduced in
Browse files Browse the repository at this point in the history
…bb4e152

```
../../lib/util.c:637:7: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
  637 | const const char *
      |       ^
```

Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Oct 18, 2024
1 parent 8d0bb40 commit dd12be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ load_mc_home_file (const char *from, const char *filename, char **allocated_file

/* --------------------------------------------------------------------------------------------- */

const const char *
const char *
extract_line (const char *s, const char *top, size_t *len)
{
static char tmp_line[BUF_MEDIUM];
Expand Down
2 changes: 1 addition & 1 deletion lib/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const char *get_group (gid_t gid);
const char *get_owner (uid_t uid);

/* Returns a copy of *s until a \n is found and is below top */
const const char *extract_line (const char *s, const char *top, size_t *len);
const char *extract_line (const char *s, const char *top, size_t *len);

/* Process spawning */
int my_system (int flags, const char *shell, const char *command);
Expand Down

0 comments on commit dd12be7

Please sign in to comment.