Commit 4db41492 authored by Martin Pool's avatar Martin Pool

popt-1.5 is const-correct.

parent 1ac15cd8
...@@ -125,7 +125,7 @@ static void print_rsync_version(int f) ...@@ -125,7 +125,7 @@ static void print_rsync_version(int f)
hardlinks, links); hardlinks, links);
#ifdef NO_INT64 #ifdef NO_INT64
rprintf(logcode, "WARNING: no 64-bit integers on this platform!\n"); rprintf(f, "WARNING: no 64-bit integers on this platform!\n");
#endif #endif
} }
...@@ -361,8 +361,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain) ...@@ -361,8 +361,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
/* The context leaks in case of an error, but if there's a /* The context leaks in case of an error, but if there's a
* problem we always exit anyhow. */ * problem we always exit anyhow. */
pc = poptGetContext(RSYNC_NAME, *argc, (const char **) *argv, pc = poptGetContext(RSYNC_NAME, *argc, *argv, long_options, 0);
long_options, 0);
while ((opt = poptGetNextOpt(pc)) != -1) { while ((opt = poptGetNextOpt(pc)) != -1) {
if (ref) { if (ref) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment