Skip to content

Commit 7f2f103

Browse files
Duncaenojab
andcommitted
bin/xbps-checkvers: fix build with glibc 2.43 const preserving
Co-authored-by: ojab <ojab@ojab.ru>
1 parent 7d02b79 commit 7f2f103

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/xbps-checkvers/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ static int
537537
rcv_check_version(rcv_t *rcv)
538538
{
539539
const char *repover = NULL;
540-
char srcver[BUFSIZ] = { '\0' }, *binpkgname = NULL, *s = NULL;
541-
const char *pkgname, *version, *revision, *reverts, *repourl;
540+
char srcver[BUFSIZ] = { '\0' }, *binpkgname = NULL;
541+
const char *pkgname, *version, *revision, *reverts, *repourl, *s;
542542
int sz;
543543
size_t len;
544544

@@ -660,8 +660,8 @@ template_removed_cb(struct xbps_handle *xhp UNUSED,
660660
void *arg,
661661
bool *done UNUSED)
662662
{
663+
const char *last_dash;
663664
char *pkgname;
664-
char *last_dash;
665665
bool dummy_bool = false;
666666
rcv_t *rcv = arg;
667667

0 commit comments

Comments
 (0)