aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsdb/fsdbutil.c4
-rw-r--r--sbin/ldconfig/ldconfig.c7
-rw-r--r--sbin/modload/modload.c4
3 files changed, 7 insertions, 8 deletions
diff --git a/sbin/fsdb/fsdbutil.c b/sbin/fsdb/fsdbutil.c
index ee934d185f41..d6a3684629da 100644
--- a/sbin/fsdb/fsdbutil.c
+++ b/sbin/fsdb/fsdbutil.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id$";
+ "$Id: fsdbutil.c,v 1.7 1998/06/15 07:12:20 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -125,7 +125,7 @@ printstat(cp, inum, dp)
puts("fifo");
break;
}
- printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
+ printf("I=%lu MODE=%o SIZE=%qu", (u_long)inum, dp->di_mode, dp->di_size);
t = dp->di_mtime;
p = ctime(&t);
printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c
index 096ce52b8b57..1b9e837228eb 100644
--- a/sbin/ldconfig/ldconfig.c
+++ b/sbin/ldconfig/ldconfig.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: ldconfig.c,v 1.20 1997/08/22 04:42:12 peter Exp $
+ * $Id: ldconfig.c,v 1.21 1998/05/26 20:12:50 sos Exp $
*/
#include <sys/param.h>
@@ -507,14 +507,13 @@ readhints()
hdr = (struct hints_header *)addr;
if (HH_BADMAG(*hdr)) {
- warnx("%s: Bad magic: %o",
- hints_file, hdr->hh_magic);
+ warnx("%s: Bad magic: %lo", hints_file, hdr->hh_magic);
return -1;
}
if (hdr->hh_version != LD_HINTS_VERSION_1 &&
hdr->hh_version != LD_HINTS_VERSION_2) {
- warnx("Unsupported version: %d", hdr->hh_version);
+ warnx("Unsupported version: %ld", hdr->hh_version);
return -1;
}
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c
index a6ec09deed69..90251c78409a 100644
--- a/sbin/modload/modload.c
+++ b/sbin/modload/modload.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: modload.c,v 1.19 1997/06/29 20:38:38 bde Exp $
+ * $Id: modload.c,v 1.20 1997/08/21 22:33:59 jlemon Exp $
*/
#include <stdio.h>
@@ -389,7 +389,7 @@ main(argc, argv)
err(15, "error fetching module stats for post-install");
sprintf(id, "%d", sbuf.id);
sprintf(type, "0x%x", sbuf.type);
- sprintf(offset, "%d", sbuf.offset);
+ sprintf(offset, "%lu", sbuf.offset);
/* XXX the modload docs say that drivers can install bdevsw &
cdevsw, but the interface only supports one at a time. sigh. */