Skip to content

Commit 800fd3f

Browse files
committed
Use c# type keywords.
1 parent ba59196 commit 800fd3f

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

src/Renci.SshNet/Common/PipeStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public override int Read(byte[] buffer, int offset, int count)
189189
if (offset < 0 || count < 0)
190190
throw new ArgumentOutOfRangeException("offset", "offset or count is negative.");
191191
if (BlockLastReadBuffer && count >= _maxBufferLength)
192-
throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, "count({0}) > mMaxBufferLength({1})", count, _maxBufferLength));
192+
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "count({0}) > mMaxBufferLength({1})", count, _maxBufferLength));
193193
if (_isDisposed)
194194
throw CreateObjectDisposedException();
195195
if (count == 0)

src/Renci.SshNet/Sftp/SftpFileAttributes.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,45 @@ public class SftpFileAttributes
1313
{
1414
#region Bitmask constats
1515

16-
private const UInt32 S_IFMT = 0xF000; // bitmask for the file type bitfields
16+
private const uint S_IFMT = 0xF000; // bitmask for the file type bitfields
1717

18-
private const UInt32 S_IFSOCK = 0xC000; // socket
18+
private const uint S_IFSOCK = 0xC000; // socket
1919

20-
private const UInt32 S_IFLNK = 0xA000; // symbolic link
20+
private const uint S_IFLNK = 0xA000; // symbolic link
2121

22-
private const UInt32 S_IFREG = 0x8000; // regular file
22+
private const uint S_IFREG = 0x8000; // regular file
2323

24-
private const UInt32 S_IFBLK = 0x6000; // block device
24+
private const uint S_IFBLK = 0x6000; // block device
2525

26-
private const UInt32 S_IFDIR = 0x4000; // directory
26+
private const uint S_IFDIR = 0x4000; // directory
2727

28-
private const UInt32 S_IFCHR = 0x2000; // character device
28+
private const uint S_IFCHR = 0x2000; // character device
2929

30-
private const UInt32 S_IFIFO = 0x1000; // FIFO
30+
private const uint S_IFIFO = 0x1000; // FIFO
3131

32-
private const UInt32 S_ISUID = 0x0800; // set UID bit
32+
private const uint S_ISUID = 0x0800; // set UID bit
3333

34-
private const UInt32 S_ISGID = 0x0400; // set-group-ID bit (see below)
34+
private const uint S_ISGID = 0x0400; // set-group-ID bit (see below)
3535

36-
private const UInt32 S_ISVTX = 0x0200; // sticky bit (see below)
36+
private const uint S_ISVTX = 0x0200; // sticky bit (see below)
3737

38-
private const UInt32 S_IRUSR = 0x0100; // owner has read permission
38+
private const uint S_IRUSR = 0x0100; // owner has read permission
3939

40-
private const UInt32 S_IWUSR = 0x0080; // owner has write permission
40+
private const uint S_IWUSR = 0x0080; // owner has write permission
4141

42-
private const UInt32 S_IXUSR = 0x0040; // owner has execute permission
42+
private const uint S_IXUSR = 0x0040; // owner has execute permission
4343

44-
private const UInt32 S_IRGRP = 0x0020; // group has read permission
44+
private const uint S_IRGRP = 0x0020; // group has read permission
4545

46-
private const UInt32 S_IWGRP = 0x0010; // group has write permission
46+
private const uint S_IWGRP = 0x0010; // group has write permission
4747

48-
private const UInt32 S_IXGRP = 0x0008; // group has execute permission
48+
private const uint S_IXGRP = 0x0008; // group has execute permission
4949

50-
private const UInt32 S_IROTH = 0x0004; // others have read permission
50+
private const uint S_IROTH = 0x0004; // others have read permission
5151

52-
private const UInt32 S_IWOTH = 0x0002; // others have write permission
52+
private const uint S_IWOTH = 0x0002; // others have write permission
5353

54-
private const UInt32 S_IXOTH = 0x0001; // others have execute permission
54+
private const uint S_IXOTH = 0x0001; // others have execute permission
5555

5656
#endregion
5757

0 commit comments

Comments
 (0)