cosmetics

This commit is contained in:
John Törnblom committed 2026-09-30 17:46:46 +02:00
1 parent 70f7b8614d
commit 55b0eaa4db
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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);