Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Use an explicit cast when a value gets stored in a smaller var.
[rsync/rsync.git]
/
rsync.h
diff --git
a/rsync.h
b/rsync.h
index
269631d
..
25cb560
100644
(file)
--- a/
rsync.h
+++ b/
rsync.h
@@
-513,12
+513,12
@@
struct hlink {
struct file_struct {
union {
dev_t rdev; /* The device number, if this is a device */
struct file_struct {
union {
dev_t rdev; /* The device number, if this is a device */
- c
har *sum;
/* Only a normal file can have a checksum */
- c
har *link;
/* Points to symlink string, if a symlink */
+ c
onst char *sum;
/* Only a normal file can have a checksum */
+ c
onst char *link;
/* Points to symlink string, if a symlink */
} u;
OFF_T length;
} u;
OFF_T length;
- c
har *basename;
/* The current item's name (AKA filename) */
- c
har *dirname;
/* The directory info inside the transfer */
+ c
onst char *basename;
/* The current item's name (AKA filename) */
+ c
onst char *dirname;
/* The directory info inside the transfer */
union {
const char *root;/* Sender-side dir info outside transfer */
int depth; /* Receiver-side directory depth info */
union {
const char *root;/* Sender-side dir info outside transfer */
int depth; /* Receiver-side directory depth info */