* Map from rsync error code to name, or return NULL. */
| 110 | * Map from rsync error code to name, or return NULL. |
| 111 | */ |
| 112 | static char const *rerr_name(int code) |
| 113 | { |
| 114 | int i; |
| 115 | for (i = 0; rerr_names[i].name; i++) { |
| 116 | if (rerr_names[i].code == code) |
| 117 | return rerr_names[i].name; |
| 118 | } |
| 119 | return NULL; |
| 120 | } |
| 121 | |
| 122 | static void logit(int priority, const char *buf) |
| 123 | { |