#include "rsync.h"
#include "itypes.h"
-extern char number_separator;
+static char number_separator;
#ifndef HAVE_STRDUP
char *strdup(char *s)
char *s;
int len, negated;
+ if (human_flag && !number_separator) {
+ char buf[32];
+ snprintf(buf, sizeof buf, "%f", 3.14);
+ if (strchr(buf, '.') != NULL)
+ number_separator = ',';
+ else
+ number_separator = '.';
+ }
+
n = (n + 1) % (sizeof bufs / sizeof bufs[0]);
if (human_flag > 1) {
int inplace = 0;
int delay_updates = 0;
long block_size = 0; /* "long" because popt can't set an int32. */
-char number_separator;
char *skip_compress = NULL;
item_list dparam_list = EMPTY_ITEM_LIST;
verbose > 1 ? "stats3" : "stats2", DEFAULT_PRIORITY);
}
- if (human_readable) {
- char buf[32];
- snprintf(buf, sizeof buf, "%f", 3.14);
- if (strchr(buf, '.') != NULL)
- number_separator = ',';
- else
- number_separator = '.';
- }
-
#ifdef ICONV_OPTION
if (iconv_opt && protect_args != 2) {
if (!am_server && strcmp(iconv_opt, "-") == 0)
int preserve_acls = 0;
int preserve_times = 0;
int preserve_xattrs = 0;
-char number_separator = ',';
char *partial_dir;
char *module_dir;
filter_rule_list daemon_filter_list;
int nsec_times = 0;
int preserve_perms = 0;
int preserve_executability = 0;
-char number_separator;
#ifdef SUPPORT_XATTRS
if (!extra_args || *extra_args == NULL)
tls_usage(1);
- snprintf(buf, sizeof buf, "%f", 3.14);
- if (strchr(buf, '.') != NULL)
- number_separator = ',';
- else
- number_separator = '.';
-
for (; *extra_args; extra_args++)
list_file(*extra_args);
poptFreeContext(pc);
int list_only = 0;
int preserve_perms = 0;
int preserve_executability = 0;
-char number_separator = ',';
int
main(int argc, char **argv)
#endif
int wildmatch_errors = 0;
-char number_separator = ',';
typedef char bool;