Style: bare "unsigned" is deprecated, use "unsigned int" instead.
Thanks to: Joerg Sonnenberger
This commit is contained in:
parent
7d71430110
commit
b94f39cecc
@ -72,9 +72,9 @@ state_name(unsigned s)
|
||||
|
||||
|
||||
static void
|
||||
write_all_states(int states)
|
||||
write_all_states(unsigned int states)
|
||||
{
|
||||
unsigned lowbit;
|
||||
unsigned int lowbit;
|
||||
|
||||
/* A trick for computing the lowest set bit. */
|
||||
while ((lowbit = states & (-states)) != 0) {
|
||||
@ -92,8 +92,8 @@ write_all_states(int states)
|
||||
* the libarchive API.
|
||||
*/
|
||||
void
|
||||
__archive_check_magic(struct archive *a, unsigned magic, unsigned state,
|
||||
const char *function)
|
||||
__archive_check_magic(struct archive *a, unsigned int magic,
|
||||
unsigned int state, const char *function)
|
||||
{
|
||||
if (a->magic != magic) {
|
||||
errmsg("INTERNAL ERROR: Function ");
|
||||
|
@ -63,8 +63,8 @@ struct archive {
|
||||
* ridiculous time, or the client passes us an invalid
|
||||
* pointer, these values allow me to catch that.
|
||||
*/
|
||||
unsigned magic;
|
||||
unsigned state;
|
||||
unsigned int magic;
|
||||
unsigned int state;
|
||||
|
||||
/*
|
||||
* Some public API functions depend on the "real" type of the
|
||||
@ -89,8 +89,8 @@ struct archive {
|
||||
};
|
||||
|
||||
/* Check magic value and state; exit if it isn't valid. */
|
||||
void __archive_check_magic(struct archive *, unsigned magic,
|
||||
unsigned state, const char *func);
|
||||
void __archive_check_magic(struct archive *, unsigned int magic,
|
||||
unsigned int state, const char *func);
|
||||
|
||||
void __archive_errx(int retvalue, const char *msg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user