projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integer type name change.
[silc.git]
/
lib
/
silcutil
/
silcfileutil.c
diff --git
a/lib/silcutil/silcfileutil.c
b/lib/silcutil/silcfileutil.c
index 4cb3e2f755a2753b006a24d71e029a93780fa1db..0bb65962fad2774478c7d710d86b55c01ae31027 100644
(file)
--- a/
lib/silcutil/silcfileutil.c
+++ b/
lib/silcutil/silcfileutil.c
@@
-40,14
+40,14
@@
int silc_file_open_mode(const char *filename, int flags, int mode)
/* Reads data from file descriptor `fd' to `buf'. */
/* Reads data from file descriptor `fd' to `buf'. */
-int silc_file_read(int fd, unsigned char *buf,
ui
nt32 buf_len)
+int silc_file_read(int fd, unsigned char *buf,
SilcUI
nt32 buf_len)
{
return read(fd, (void *)buf, buf_len);
}
/* Writes `buffer' of length of `len' to file descriptor `fd. */
{
return read(fd, (void *)buf, buf_len);
}
/* Writes `buffer' of length of `len' to file descriptor `fd. */
-int silc_file_write(int fd, const char *buffer,
ui
nt32 len)
+int silc_file_write(int fd, const char *buffer,
SilcUI
nt32 len)
{
return write(fd, (const void *)buffer, len);
}
{
return write(fd, (const void *)buffer, len);
}
@@
-61,7
+61,7
@@
int silc_file_close(int fd)
/* Writes a buffer to the file. */
/* Writes a buffer to the file. */
-int silc_file_writefile(const char *filename, const char *buffer,
ui
nt32 len)
+int silc_file_writefile(const char *filename, const char *buffer,
SilcUI
nt32 len)
{
int fd;
{
int fd;
@@
-86,7
+86,7
@@
int silc_file_writefile(const char *filename, const char *buffer, uint32 len)
set to the file. */
int silc_file_writefile_mode(const char *filename, const char *buffer,
set to the file. */
int silc_file_writefile_mode(const char *filename, const char *buffer,
-
ui
nt32 len, int mode)
+
SilcUI
nt32 len, int mode)
{
int fd;
{
int fd;
@@
-110,7
+110,7
@@
int silc_file_writefile_mode(const char *filename, const char *buffer,
/* Reads a file to a buffer. The allocated buffer is returned. Length of
the file read is returned to the return_len argument. */
/* Reads a file to a buffer. The allocated buffer is returned. Length of
the file read is returned to the return_len argument. */
-char *silc_file_readfile(const char *filename,
ui
nt32 *return_len)
+char *silc_file_readfile(const char *filename,
SilcUI
nt32 *return_len)
{
int fd;
char *buffer;
{
int fd;
char *buffer;
@@
-161,7
+161,7
@@
char *silc_file_readfile(const char *filename, uint32 *return_len)
/* Returns files size. Returns 0 on error. */
/* Returns files size. Returns 0 on error. */
-
ui
nt64 silc_file_size(const char *filename)
+
SilcUI
nt64 silc_file_size(const char *filename)
{
int ret;
struct stat stats;
{
int ret;
struct stat stats;
@@
-174,5
+174,5
@@
uint64 silc_file_size(const char *filename)
if (ret < 0)
return 0;
if (ret < 0)
return 0;
- return (
ui
nt64)stats.st_size;
+ return (
SilcUI
nt64)stats.st_size;
}
}