summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/src
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-08-08 03:16:13 +0000
committerguenther <guenther@openbsd.org>2013-08-08 03:16:13 +0000
commit36ac2e2afede4094a8aa0762d21bb3b464cc7675 (patch)
tree03613b9315fdc25a2c6456d607bc1fac53f873bf /gnu/usr.bin/cvs/src
parentMost network drivers include netinet/in_var.h, but apparently they (diff)
downloadwireguard-openbsd-36ac2e2afede4094a8aa0762d21bb3b464cc7675.tar.xz
wireguard-openbsd-36ac2e2afede4094a8aa0762d21bb3b464cc7675.zip
Prep for big ino_t: cast to unsigned long long and format with %ll or %q
httpd correction and ok kettenis@
Diffstat (limited to 'gnu/usr.bin/cvs/src')
-rw-r--r--gnu/usr.bin/cvs/src/hardlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/cvs/src/hardlink.c b/gnu/usr.bin/cvs/src/hardlink.c
index 309d27f078d..245ce3d2e29 100644
--- a/gnu/usr.bin/cvs/src/hardlink.c
+++ b/gnu/usr.bin/cvs/src/hardlink.c
@@ -77,7 +77,7 @@ lookup_file_by_inode (filepath)
error (1, errno, "cannot stat %s", file);
}
- sprintf (inodestr, "%lx", (unsigned long) sb.st_ino);
+ sprintf (inodestr, "%llx", (unsigned long long) sb.st_ino);
/* Find out if this inode is already in the hardlist, adding
a new entry to the list if not. */
@@ -193,7 +193,7 @@ list_linked_files_on_disk (file)
inode, so it requires two bytes of text to represent
each byte of the inode number. */
inodestr = (char *) xmalloc (2*sizeof(ino_t) + 1);
- sprintf (inodestr, "%lx", (unsigned long) sb.st_ino);
+ sprintf (inodestr, "%llx", (unsigned long long) sb.st_ino);
/* Make sure the files linked to this inode are sorted. */
n = findnode (hardlist, inodestr);