diff options
author | Wayne Davison <wayned@samba.org> | 2006-12-04 02:07:30 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-12-04 02:07:30 +0000 |
commit | 155d9206a4d5b199d056b2932c62c292e58c0d69 (patch) | |
tree | 2c2d0127b4e4ff59fecf9ac120c9b22c8812f960 /io.c | |
parent | 6b2a3d5de667e4abf938c453121340ad47ccc5c0 (diff) | |
download | rsync-155d9206a4d5b199d056b2932c62c292e58c0d69.tar.gz |
Added send_msg_int() function.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -405,6 +405,13 @@ int send_msg(enum msgcode code, const char *buf, int len) return 1; } +void send_msg_int(enum msgcode code, int num) +{ + char numbuf[4]; + SIVAL(numbuf, 0, num); + send_msg(code, numbuf, 4); +} + int get_redo_num(int itemizing, enum logcode code) { while (1) { |