chore: pretty source

This commit is contained in:
Radim Kolar 2024-07-08 09:09:54 +02:00
parent a47b5d82d3
commit 3c14fc28cd

View File

@ -50,9 +50,9 @@ typedef struct {
unsigned int f_len; /* length of last component in path */ unsigned int f_len; /* length of last component in path */
const char *d_ptr; /* ptr to beginning of directory component */ const char *d_ptr; /* ptr to beginning of directory component */
unsigned int d_len; /* length of directory part of path. */ unsigned int d_len; /* length of directory part of path. */
const char *passwd; /* ptr to password */ const char *passwd; /* ptr to password */
char inetstr[16]; /* inet-address of remote-FSP */ char inetstr[16]; /* inet-address of remote-FSP */
char portstr[8]; /* port of remote-FSP */ char portstr[8]; /* port of remote-FSP */
} PPATH; } PPATH;
/* open file handles cache */ /* open file handles cache */
@ -64,8 +64,8 @@ typedef struct { FILE *fp;
/* DIRLISTING holds open directory listings */ /* DIRLISTING holds open directory listings */
typedef struct { typedef struct {
int8_t *listing; /* pointer to directory listing */ int8_t *listing; /* pointer to directory listing */
size_t listing_size; /* how many bytes has listing? */ size_t listing_size; /* how many bytes has listing? */
time_t mtime; /* when cache was build */ time_t mtime; /* when cache was build */
} DIRLISTING; } DIRLISTING;
/* hold directory information */ /* hold directory information */
@ -105,8 +105,9 @@ typedef struct {
#define L_RENAME 0x4000 #define L_RENAME 0x4000
#define L_ALL 0xffff #define L_ALL 0xffff
/* cache directory listing */ /* directory listing cache file */
#define FSP_DIRLISTING ".FSP_CONTENT" #define FSP_DIRLISTING ".FSP_CONTENT"
/* file names used for access control */ /* file names used for access control */
#define FSP_NOGET ".FSP_NO_GET" #define FSP_NOGET ".FSP_NO_GET"
#define FSP_DEL ".FSP_OK_DEL" #define FSP_DEL ".FSP_OK_DEL"