mirror of
https://github.com/ps5-payload-dev/ftpsrv.git
synced 2026-10-18 18:03:30 -05:00
cosmetics
This commit is contained in:
1 parent
70f7b8614d
commit
55b0eaa4db
4 files changed
+4
-4
No files matched your search
@@ -292,7 +292,7 @@ int
|
||||
ftp_cmd_CHMOD(ftp_env_t *env, const char* arg) {
|
||||
char pathbuf[PATH_MAX];
|
||||
mode_t mode = 0;
|
||||
char* ptr;
|
||||
const char* ptr;
|
||||
|
||||
if(!arg[0] || !(ptr=strstr(arg, " "))) {
|
||||
return ftp_active_printf(env, "501 Usage: CHMOD <MODE> <PATH>\r\n");
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ main(int argc, char* argv[]) {
|
||||
int notify_user = 1;
|
||||
char c;
|
||||
|
||||
while((c=getopt(argc, argv, "p:h")) != -1) {
|
||||
while((c=getopt(argc, argv, "p:h")) != (char)-1) {
|
||||
switch(c) {
|
||||
case 'p':
|
||||
port = atoi(optarg);
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ main(int argc, char* argv[]) {
|
||||
|
||||
syscall(SYS_thr_set_name, -1, "ftpsrv.elf");
|
||||
|
||||
while((c=getopt(argc, argv, "p:qh")) != -1) {
|
||||
while((c=getopt(argc, argv, "p:qh")) != (char)-1) {
|
||||
switch(c) {
|
||||
case 'p':
|
||||
port = atoi(optarg);
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ main(int argc, char* argv[]) {
|
||||
|
||||
syscall(SYS_thr_set_name, -1, "ftpsrv.elf");
|
||||
|
||||
while((c=getopt(argc, argv, "p:qh")) != -1) {
|
||||
while((c=getopt(argc, argv, "p:qh")) != (char)-1) {
|
||||
switch(c) {
|
||||
case 'p':
|
||||
port = atoi(optarg);
|
||||
|
||||
Reference in new issue
Block a user