Remove fish_wcstoi decl - fix style

This commit is contained in:
Aaron Gyes 2016-09-10 14:55:27 -07:00
parent b17ebb4551
commit ae32d0288b
2 changed files with 3 additions and 4 deletions

View File

@ -90,8 +90,9 @@ bool builtin_data_t::operator<(const builtin_data_t *other) const {
///
int builtin_count_args(const wchar_t *const *argv) {
int argc;
for (argc = 1; argv[argc] != NULL; argc++)
;
for (argc = 1; argv[argc] != NULL;){
argc++;
}
assert(argv[argc] == NULL);
return argc;

View File

@ -59,8 +59,6 @@ int wmkdir(const wcstring &dir, int mode);
int wrename(const wcstring &oldName, const wcstring &newName);
int fish_wcstoi(const wchar_t *str, wchar_t **endptr, int base);
/// Class for representing a file's inode. We use this to detect and avoid symlink loops, among
/// other things. While an inode / dev pair is sufficient to distinguish co-existing files, Linux
/// seems to aggressively re-use inodes, so it cannot determine if a file has been deleted (ABA