diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-04-02 00:15:45 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-04-02 00:15:45 +0000 |
commit | c25369d5e8a76c5bc6c46b1a3e8da2b802a28f66 (patch) | |
tree | 16546b5223598a0ecf53ce3bf489fbbd482999af | |
parent | 53ce615be372500a481f1120f7b90af9cfd85adb (diff) | |
download | FreeBSD-src-c25369d5e8a76c5bc6c46b1a3e8da2b802a28f66.zip FreeBSD-src-c25369d5e8a76c5bc6c46b1a3e8da2b802a28f66.tar.gz |
Style: bare "unsigned" is deprecated, use "unsigned int" instead.
Thanks to: Joerg Sonnenberger
-rw-r--r-- | lib/libarchive/archive_check_magic.c | 8 | ||||
-rw-r--r-- | lib/libarchive/archive_private.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/libarchive/archive_check_magic.c b/lib/libarchive/archive_check_magic.c index 7225da3..d9cfbc6 100644 --- a/lib/libarchive/archive_check_magic.c +++ b/lib/libarchive/archive_check_magic.c @@ -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 "); diff --git a/lib/libarchive/archive_private.h b/lib/libarchive/archive_private.h index a6b7fd6..a75489d 100644 --- a/lib/libarchive/archive_private.h +++ b/lib/libarchive/archive_private.h @@ -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); |