Page MenuHomeFreeBSD

tunefs: Fix pointer arithmetic
ClosedPublic

Authored by des on Fri, Apr 10, 3:15 PM.

Details

Summary

While here, remove a bogus const which has been there for years.

MFC after: 1 week
Reported by: ivy@
Fixes: 1b83e8a3f840 ("Constify string pointers.")
Fixes: 8244dd326265 ("tunefs: Better fix for arm64 alignment issues")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Fri, Apr 10, 3:15 PM
olce added inline comments.
sbin/tunefs/tunefs.c
717

Could you please remove as well the (uintptr_t) conversion that I suspect was here just to circumvent the bogus const in the signature?

des marked an inline comment as done.Fri, Apr 10, 3:52 PM
des added inline comments.
sbin/tunefs/tunefs.c
717

No, it was added last week to suppress an alignment warning and is still needed.

des marked an inline comment as done.Fri, Apr 10, 4:06 PM
This revision is now accepted and ready to land.Sat, Apr 11, 4:41 PM
This revision was automatically updated to reflect the committed changes.