Skip to content

Commit 46ca19b

Browse files
committed
Fixed identation and formatting
1 parent 0cf1e05 commit 46ca19b

File tree

8 files changed

+50
-30
lines changed

8 files changed

+50
-30
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig: http://EditorConfig.org
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
charset = utf-8
12+
13+
# 1 space indentation
14+
[*.{c,h,js,css,html}]
15+
indent_style = space
16+
indent_size = 1
17+
18+
# Tab indentation
19+
[Makefile*]
20+
indent_style = tab

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
else
1111
LIBS = -lwsock32 -lpthreadGC2
1212
endif
13-
13+
1414
ifeq "x$(PREFIX)" "x"
1515
PREFIX = $(PS2DEV)
1616
endif

doc/license.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
* notice, this list of conditions and the following disclaimer in the
1515
* documentation and/or other materials provided with the distribution.
1616
*
17-
* 3. The name of the author(s) may not be used to endorse or promote products
17+
* 3. The name of the author(s) may not be used to endorse or promote products
1818
* derived from this software without specific prior written permission.
1919
*
2020
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2121
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2222
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2323
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT,
24-
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2626
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2828
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2929
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3030
* SUCH DAMAGE.

doc/ps2link-protocol.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
tell it what to do. These are simple commands sent as single packets for
3232
executing programs, resetting ps2link or other things. This list may grow
3333
as time goes on and new functionality is added to ps2link.
34-
34+
3535
----------------------------
3636
0xBABE0201 (reset command)
3737
----------------------------

src/fsclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
if (!strcmp(temp, "pfs")) { printf(" pfs - Playstation File System.\n"); } else
237237
if (!strcmp(temp, "dev9x")) { printf(" dev9x - Blah blah blah.\n"); } else
238238

239-
//
239+
//
240240
{ printf(" %s\n", temp); }
241241

242242
// Increment temp.

src/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// Start up winsock.
2424
if (WSAStartup(MAKEWORD(2, 0), &wsaData) != 0) { return -1; }
2525

26-
// End function.
26+
// End function.
2727
return 0;
2828

2929
}

src/ps2link.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,13 @@
555555

556556
// Perform the request.
557557
// do we need to use mode in here: request->mode ?
558-
558+
559559
#ifdef _WIN32
560-
result = mkdir(request->name);
560+
result = mkdir(request->name);
561561
#else
562562
result = mkdir(request->name, request->mode);
563563
#endif
564-
564+
565565
// Send the response.
566566
return ps2link_response_mkdir(result);
567567
}
@@ -589,10 +589,10 @@ int ps2link_request_getstat(void *packet) {
589589

590590
// Fix the arguments.
591591
fix_pathname(request->name);
592-
592+
593593
// Fetch the entry's statistics.
594594
ret = stat(request->name, &stats);
595-
595+
596596
if (ret == 0) {
597597
// Convert the mode.
598598
mode = (stats.st_mode & 0x07);
@@ -601,7 +601,7 @@ int ps2link_request_getstat(void *packet) {
601601
if (S_ISLNK(stats.st_mode)) { mode |= 0x08; }
602602
#endif
603603
if (S_ISREG(stats.st_mode)) { mode |= 0x10; }
604-
604+
605605
// Convert the creation time.
606606
loctime = localtime(&(stats.st_ctime));
607607
ctime[6] = (unsigned char)loctime->tm_year;
@@ -610,7 +610,7 @@ int ps2link_request_getstat(void *packet) {
610610
ctime[3] = (unsigned char)loctime->tm_hour;
611611
ctime[2] = (unsigned char)loctime->tm_min;
612612
ctime[1] = (unsigned char)loctime->tm_sec;
613-
613+
614614
// Convert the access time.
615615
loctime = localtime(&(stats.st_atime));
616616
atime[6] = (unsigned char)loctime->tm_year;
@@ -619,7 +619,7 @@ int ps2link_request_getstat(void *packet) {
619619
atime[3] = (unsigned char)loctime->tm_hour;
620620
atime[2] = (unsigned char)loctime->tm_min;
621621
atime[1] = (unsigned char)loctime->tm_sec;
622-
622+
623623
// Convert the last modified time.
624624
loctime = localtime(&(stats.st_mtime));
625625
mtime[6] = (unsigned char)loctime->tm_year;
@@ -629,7 +629,7 @@ int ps2link_request_getstat(void *packet) {
629629
mtime[2] = (unsigned char)loctime->tm_min;
630630
mtime[1] = (unsigned char)loctime->tm_sec;
631631
}
632-
632+
633633
return ps2link_response_getstat(ret, mode, 0, stats.st_size, ctime, atime, mtime, 0);
634634
}
635635

src/ps2netfs.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,27 @@
6363
#define PS2NETFS_COMMAND_DEVLIST 0xBEEF8F21
6464

6565
int ps2netfs_command_open(char *pathname, int flags);
66-
66+
6767
int ps2netfs_command_close(int fd);
68-
68+
6969
int ps2netfs_command_read(int fd, void *buffer, int size);
70-
70+
7171
int ps2netfs_command_write(int fd, void *buffer, int size);
72-
72+
7373
int ps2netfs_command_lseek(int fd, int offset, int whence);
74-
74+
7575
// ioctl - unimplemented
7676

7777
int ps2netfs_command_delete(char *pathname, int flags);
78-
78+
7979
int ps2netfs_command_mkdir(char *pathname, int flags);
80-
80+
8181
int ps2netfs_command_rmdir(char *pathname, int flags);
82-
82+
8383
int ps2netfs_command_dopen(char *pathname, int flags);
84-
84+
8585
int ps2netfs_command_dclose(int dd);
86-
86+
8787
int ps2netfs_command_dread(int dd, DIRENT *dirent);
8888

8989
// getstat - unimplemented
@@ -97,9 +97,9 @@
9797
// chdir - unimplemented
9898

9999
int ps2netfs_command_sync(char *device, int flags);
100-
100+
101101
int ps2netfs_command_mount(char *device, char *fsname, int flags, char *argv, int argc);
102-
102+
103103
int ps2netfs_command_umount(char *device, int flags);
104104

105105
// lseek64 - unimplemented
@@ -117,5 +117,5 @@
117117
// fstype - unimplemented
118118

119119
int ps2netfs_command_devlist(char *pathname, int flags, char *devlist);
120-
120+
121121
#endif

0 commit comments

Comments
 (0)