File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -584,13 +584,14 @@ int ps2link_request_getstat(void *packet) {
584584 struct { unsigned int number ; unsigned short length ; char name [256 ]; } PACKED * request = packet ;
585585 struct stat stats ; struct tm * loctime ;
586586 int ret ;
587- unsigned int mode ; unsigned char ctime [8 ]; unsigned char atime [8 ]; unsigned char mtime [8 ];
587+ unsigned int mode = 0 ;
588+ unsigned char ctime [8 ]; unsigned char atime [8 ]; unsigned char mtime [8 ];
588589
589590 // Fix the arguments.
590591 fix_pathname (request -> name );
591592
592- // Fetch the entry's statistics.
593- ret = stat (request -> name , & stats );
593+ // Fetch the entry's statistics.
594+ ret = stat (request -> name , & stats );
594595
595596 if (ret == 0 ) {
596597 // Convert the mode.
Original file line number Diff line number Diff line change 133133
134134 int ps2link_response_rmdir (int result );
135135
136+ int ps2link_response_getstat (
137+ int result ,
138+ unsigned int mode ,
139+ unsigned int attr ,
140+ unsigned int size ,
141+ unsigned char * ctime ,
142+ unsigned char * atime ,
143+ unsigned char * mtime ,
144+ unsigned int hisize
145+ );
146+
136147 //////////////////////////////
137148 // PS2LINK THREAD FUNCTIONS //
138149 //////////////////////////////
You can’t perform that action at this time.
0 commit comments