projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b424d54
)
ctime -> silc_get_time.
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Sep 2002 17:19:12 +0000
(17:19 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Sep 2002 17:19:12 +0000
(17:19 +0000)
lib/silcsftp/sftp_fs_memory.c
patch
|
blob
|
history
diff --git
a/lib/silcsftp/sftp_fs_memory.c
b/lib/silcsftp/sftp_fs_memory.c
index 0867fabad59771fa9f03ec7bc160e9320a0e015b..7d1cba04679135ddc7045332c9329b99f434e801 100644
(file)
--- a/
lib/silcsftp/sftp_fs_memory.c
+++ b/
lib/silcsftp/sftp_fs_memory.c
@@
-33,7
+33,7
@@
typedef struct MemFSEntryStruct {
SilcUInt32 entry_count; /* Number of files and sub-directories */
struct MemFSEntryStruct *parent; /* non-NULL if `directory' is TRUE,
includes parent directory. */
SilcUInt32 entry_count; /* Number of files and sub-directories */
struct MemFSEntryStruct *parent; /* non-NULL if `directory' is TRUE,
includes parent directory. */
-
unsigned long created;
/* Time of creation */
+
SilcUInt32 created;
/* Time of creation */
char *name; /* Name of the entry */
char *data; /* Data of the entry */
unsigned int directory : 1; /* Set if this is directory */
char *name; /* Name of the entry */
char *data; /* Data of the entry */
unsigned int directory : 1; /* Set if this is directory */
@@
-775,7
+775,7
@@
void mem_readdir(void *context, SilcSFTP sftp,
filesize = sizeof(*entry);
memset(long_name, 0, sizeof(long_name));
filesize = sizeof(*entry);
memset(long_name, 0, sizeof(long_name));
- date =
ctime(&
entry->created);
+ date =
(char *)silc_get_time(
entry->created);
if (strrchr(date, ':'))
*strrchr(date, ':') = '\0';
if (strrchr(date, ':'))
*strrchr(date, ':') = '\0';