Commit Graph

6 Commits

Author SHA1 Message Date
Karel Zak faeb1b64b3 include: add missing license lines
The header files are usually based on code from lib/. This commit
copies relevant license headers from lib/ to include/ to keep
things consistent. The very generic things (e.g. MBR definitions)
are always public domain.

Signed-off-by: Karel Zak <>
2023-01-12 15:33:09 +01:00
Karel Zak 47afae0caa libblkid: const qualifier cleanup
* use "const" in functions where we don't modify arguments

* use "const" when cast from const buffer to any struct (superblock etc.)

Signed-off-by: Karel Zak <>
2018-07-20 15:05:32 +02:00
Ruediger Meier 7f387c5c21 libfdisk: cleanup sun label checksum usuage
We are using now the formerly unused function sun_pt_checksum(). This
cleanup was motivated by clang compiler warning, see below. Also nice
that we are now always using uint16_t instead of short.

Warning was:

../libfdisk/src/sun.c:177:35: warning: taking address of packed member 'csum' of class or structure 'sun_disklabel' may result in an unaligned pointer value
                while(ush < (unsigned short *)(&sunlabel->csum))

Signed-off-by: Ruediger Meier <>
2017-06-13 18:06:36 +02:00
Karel Zak 9d3d9754e7 libblkid: rename in sun_disklabel for compatibility with fdisk
Signed-off-by: Karel Zak <>
2013-03-11 13:00:55 +01:00
Karel Zak ce337318fa inlude/pt-sun: add flags and tags
Signed-off-by: Karel Zak <>
2013-03-11 13:00:55 +01:00
Karel Zak a08dc0ca89 libblkid: move sun PT definition to include/
Signed-off-by: Karel Zak <>
2013-03-11 13:00:55 +01:00