Fossil SCM

unused variables

jan.nijtmans 2013-02-21 08:15 trunk
Commit 75e483899e28a533c7f17bb179acd9c10e9f3b60
--- src/clone.c
+++ src/clone.c
@@ -99,11 +99,10 @@
9999
** See also: init
100100
*/
101101
void clone_cmd(void){
102102
char *zPassword;
103103
const char *zDefaultUser; /* Optional name of the default user */
104
- const char *zPw; /* The user clone password */
105104
int nErr = 0;
106105
int bPrivate = 0; /* Also clone private branches */
107106
108107
if( find_option("private",0,0)!=0 ) bPrivate = SYNC_PRIVATE;
109108
url_proxy_options();
110109
--- src/clone.c
+++ src/clone.c
@@ -99,11 +99,10 @@
99 ** See also: init
100 */
101 void clone_cmd(void){
102 char *zPassword;
103 const char *zDefaultUser; /* Optional name of the default user */
104 const char *zPw; /* The user clone password */
105 int nErr = 0;
106 int bPrivate = 0; /* Also clone private branches */
107
108 if( find_option("private",0,0)!=0 ) bPrivate = SYNC_PRIVATE;
109 url_proxy_options();
110
--- src/clone.c
+++ src/clone.c
@@ -99,11 +99,10 @@
99 ** See also: init
100 */
101 void clone_cmd(void){
102 char *zPassword;
103 const char *zDefaultUser; /* Optional name of the default user */
 
104 int nErr = 0;
105 int bPrivate = 0; /* Also clone private branches */
106
107 if( find_option("private",0,0)!=0 ) bPrivate = SYNC_PRIVATE;
108 url_proxy_options();
109
--- src/configure.c
+++ src/configure.c
@@ -879,11 +879,10 @@
879879
|| strncmp(zMethod, "push", n)==0
880880
|| strncmp(zMethod, "sync", n)==0
881881
){
882882
int mask;
883883
const char *zServer = 0;
884
- const char *zPw;
885884
int legacyFlag = 0;
886885
int overwriteFlag = 0;
887886
888887
if( zMethod[0]!='s' ) legacyFlag = find_option("legacy",0,0)!=0;
889888
if( strncmp(zMethod,"pull",n)==0 ){
890889
--- src/configure.c
+++ src/configure.c
@@ -879,11 +879,10 @@
879 || strncmp(zMethod, "push", n)==0
880 || strncmp(zMethod, "sync", n)==0
881 ){
882 int mask;
883 const char *zServer = 0;
884 const char *zPw;
885 int legacyFlag = 0;
886 int overwriteFlag = 0;
887
888 if( zMethod[0]!='s' ) legacyFlag = find_option("legacy",0,0)!=0;
889 if( strncmp(zMethod,"pull",n)==0 ){
890
--- src/configure.c
+++ src/configure.c
@@ -879,11 +879,10 @@
879 || strncmp(zMethod, "push", n)==0
880 || strncmp(zMethod, "sync", n)==0
881 ){
882 int mask;
883 const char *zServer = 0;
 
884 int legacyFlag = 0;
885 int overwriteFlag = 0;
886
887 if( zMethod[0]!='s' ) legacyFlag = find_option("legacy",0,0)!=0;
888 if( strncmp(zMethod,"pull",n)==0 ){
889
-2
--- src/sync.c
+++ src/sync.c
@@ -28,11 +28,10 @@
2828
**
2929
** Return the number of errors.
3030
*/
3131
int autosync(int flags){
3232
const char *zAutosync;
33
- const char *zPw;
3433
int rc;
3534
int configSync = 0; /* configuration changes transferred */
3635
if( g.fNoSync ){
3736
return 0;
3837
}
@@ -81,11 +80,10 @@
8180
** of a server to sync against. If no argument is given, use the
8281
** most recently synced URL. Remember the current URL for next time.
8382
*/
8483
static void process_sync_args(unsigned *pConfigFlags, unsigned *pSyncFlags){
8584
const char *zUrl = 0;
86
- const char *zPw = 0;
8785
unsigned configSync = 0;
8886
unsigned urlFlags = URL_REMEMBER | URL_PROMPT_PW;
8987
int urlOptional = find_option("autourl",0,0)!=0;
9088
if( find_option("once",0,0)!=0 ) urlFlags &= ~URL_REMEMBER;
9189
if( find_option("private",0,0)!=0 ){
9290
--- src/sync.c
+++ src/sync.c
@@ -28,11 +28,10 @@
28 **
29 ** Return the number of errors.
30 */
31 int autosync(int flags){
32 const char *zAutosync;
33 const char *zPw;
34 int rc;
35 int configSync = 0; /* configuration changes transferred */
36 if( g.fNoSync ){
37 return 0;
38 }
@@ -81,11 +80,10 @@
81 ** of a server to sync against. If no argument is given, use the
82 ** most recently synced URL. Remember the current URL for next time.
83 */
84 static void process_sync_args(unsigned *pConfigFlags, unsigned *pSyncFlags){
85 const char *zUrl = 0;
86 const char *zPw = 0;
87 unsigned configSync = 0;
88 unsigned urlFlags = URL_REMEMBER | URL_PROMPT_PW;
89 int urlOptional = find_option("autourl",0,0)!=0;
90 if( find_option("once",0,0)!=0 ) urlFlags &= ~URL_REMEMBER;
91 if( find_option("private",0,0)!=0 ){
92
--- src/sync.c
+++ src/sync.c
@@ -28,11 +28,10 @@
28 **
29 ** Return the number of errors.
30 */
31 int autosync(int flags){
32 const char *zAutosync;
 
33 int rc;
34 int configSync = 0; /* configuration changes transferred */
35 if( g.fNoSync ){
36 return 0;
37 }
@@ -81,11 +80,10 @@
80 ** of a server to sync against. If no argument is given, use the
81 ** most recently synced URL. Remember the current URL for next time.
82 */
83 static void process_sync_args(unsigned *pConfigFlags, unsigned *pSyncFlags){
84 const char *zUrl = 0;
 
85 unsigned configSync = 0;
86 unsigned urlFlags = URL_REMEMBER | URL_PROMPT_PW;
87 int urlOptional = find_option("autourl",0,0)!=0;
88 if( find_option("once",0,0)!=0 ) urlFlags &= ~URL_REMEMBER;
89 if( find_option("private",0,0)!=0 ){
90

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button