[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 22/87: ext2fs: use size_t where appropriate
From: |
Samuel Thibault |
Subject: |
[hurd] 22/87: ext2fs: use size_t where appropriate |
Date: |
Sun, 09 Nov 2014 11:05:00 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 4bd281cdd18645a0bffde9748225569eaa85ea44
Author: Justus Winter <address@hidden>
Date: Fri Jun 6 11:29:18 2014 +0200
ext2fs: use size_t where appropriate
* extfs/dir.c: Use size_t where appropriate.
---
ext2fs/dir.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index a7eeaaa..65adc07 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -99,7 +99,7 @@ diskfs_null_dirstat (struct dirstat *ds)
static error_t
dirscanblock (vm_address_t blockoff, struct node *dp, int idx,
- const char *name, int namelen, enum lookup_type type,
+ const char *name, size_t namelen, enum lookup_type type,
struct dirstat *ds, ino_t *inum);
@@ -137,7 +137,7 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum
lookup_type type,
{
error_t err;
ino_t inum;
- int namelen;
+ size_t namelen;
int spec_dotdot;
struct node *np = 0;
int retry_dotdot = 0;
@@ -379,11 +379,11 @@ diskfs_lookup_hard (struct node *dp, const char *name,
enum lookup_type type,
return ENOENT. */
static error_t
dirscanblock (vm_address_t blockaddr, struct node *dp, int idx,
- const char *name, int namelen, enum lookup_type type,
+ const char *name, size_t namelen, enum lookup_type type,
struct dirstat *ds, ino_t *inum)
{
- int nfree = 0;
- int needed = 0;
+ size_t nfree = 0;
+ size_t needed = 0;
vm_address_t currentoff, prevoff;
struct ext2_dir_entry_2 *entry = 0;
int nentries = 0;
@@ -421,7 +421,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int
idx,
if (looking || countcopies)
{
- int thisfree;
+ size_t thisfree;
/* Count how much free space this entry has in it. */
if (entry->inode == 0)
@@ -527,11 +527,11 @@ diskfs_direnter_hard (struct node *dp, const char *name,
struct node *np,
struct dirstat *ds, struct protid *cred)
{
struct ext2_dir_entry_2 *new;
- int namelen = strlen (name);
- int needed = EXT2_DIR_REC_LEN (namelen);
- int oldneeded;
+ size_t namelen = strlen (name);
+ size_t needed = EXT2_DIR_REC_LEN (namelen);
+ size_t oldneeded;
vm_address_t fromoff, tooff;
- int totfreed;
+ size_t totfreed;
error_t err;
size_t oldsize = 0;
@@ -577,7 +577,7 @@ diskfs_direnter_hard (struct node *dp, const char *name,
struct node *np,
{
struct ext2_dir_entry_2 *from = (struct ext2_dir_entry_2 *)fromoff;
struct ext2_dir_entry_2 *to = (struct ext2_dir_entry_2 *) tooff;
- int fromreclen = from->rec_len;
+ size_t fromreclen = from->rec_len;
if (from->inode != 0)
{
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (55dd7de -> e4a9a4d), Samuel Thibault, 2014/11/09
- [hurd] 15/87: tmpfs: use a thread timeout, Samuel Thibault, 2014/11/09
- [hurd] 19/87: libdiskfs: use correct type for disk offsets, Samuel Thibault, 2014/11/09
- [hurd] 26/87: Merge the random translator into the Hurd repository, Samuel Thibault, 2014/11/09
- [hurd] 22/87: ext2fs: use size_t where appropriate,
Samuel Thibault <=
- [hurd] 14/87: Merge branch 'random' of ssh://git.savannah.gnu.org/srv/git/hurd/incubator into random, Samuel Thibault, 2014/11/09
- [hurd] 28/87: term: improve the demuxer, Samuel Thibault, 2014/11/09
- [hurd] 27/87: Add the random translator to prog-subdirs, Samuel Thibault, 2014/11/09
- [hurd] 33/87: Merge procfs into the Hurd repository, Samuel Thibault, 2014/11/09
- [hurd] 34/87: Add the procfs translator to prog-subdirs, Samuel Thibault, 2014/11/09
- [hurd] 36/87: ftpfs: fix error handling in refresh_dir, Samuel Thibault, 2014/11/09
- [hurd] 29/87: hurd: fix receiver lookup in termctty_open_terminal, Samuel Thibault, 2014/11/09
- [hurd] 35/87: Add mach_debug defs rules, Samuel Thibault, 2014/11/09
- [hurd] 37/87: libshouldbeinlibc: fix dead initialization in fmt_named_interval, Samuel Thibault, 2014/11/09
- [hurd] 32/87: Prepare the procfs translator to be merged into the Hurd sources, Samuel Thibault, 2014/11/09