projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 3.3.1
[debian/amanda]
/
client-src
/
sendsize.c
diff --git
a/client-src/sendsize.c
b/client-src/sendsize.c
index 6d9f0c28f0bf83c7b1ba57f15dbb44ece9ecf566..083ec65e665850744e800a033a0d7d4b82e854bd 100644
(file)
--- a/
client-src/sendsize.c
+++ b/
client-src/sendsize.c
@@
-140,6
+140,11
@@
main(
(void)argc; /* Quiet unused parameter warning */
(void)argv; /* Quiet unused parameter warning */
(void)argc; /* Quiet unused parameter warning */
(void)argv; /* Quiet unused parameter warning */
+ if (argc > 1 && argv && argv[1] && g_str_equal(argv[1], "--version")) {
+ printf("sendsize-%s\n", VERSION);
+ return (0);
+ }
+
/* initialize */
/*
/* initialize */
/*
@@
-1007,7
+1012,6
@@
generic_calc_estimates(
char *file_include = NULL;
times_t start_time;
FILE *dumpout = NULL;
char *file_include = NULL;
times_t start_time;
FILE *dumpout = NULL;
- off_t size = (off_t)1;
char *line = NULL;
char *match_expr;
amwait_t wait_status;
char *line = NULL;
char *match_expr;
amwait_t wait_status;
@@
-1097,7
+1101,7
@@
generic_calc_estimates(
}
match_expr = vstralloc(" %d SIZE %lld", NULL);
len = strlen(est->qamname);
}
match_expr = vstralloc(" %d SIZE %lld", NULL);
len = strlen(est->qamname);
- for(
size = (off_t)-1
; (line = agets(dumpout)) != NULL; free(line)) {
+ for(; (line = agets(dumpout)) != NULL; free(line)) {
long long size_ = (long long)0;
if (line[0] == '\0' || (int)strlen(line) <= len)
continue;
long long size_ = (long long)0;
if (line[0] == '\0' || (int)strlen(line) <= len)
continue;
@@
-1110,7
+1114,6
@@
generic_calc_estimates(
level,
size_);
}
level,
size_);
}
- size = (off_t)size_;
}
amfree(match_expr);
}
amfree(match_expr);