Fossil SCM

Fix typos in two function names. No functional changes.

danield 2025-12-23 16:07 trunk
Commit d425d2394fe9956c5b1e0fbc1581b982f779e84fc0eb8335e277e20bcd3ef340
2 files changed +2 -2 +1 -1
+2 -2
--- src/login.c
+++ src/login.c
@@ -1957,11 +1957,11 @@
19571957
/*
19581958
** Check to see if the candidate username zUserID is already used.
19591959
** Return 1 if it is already in use. Return 0 if the name is
19601960
** available for a self-registration.
19611961
*/
1962
-static int login_self_choosen_userid_already_exists(const char *zUserID){
1962
+static int login_self_chosen_userid_already_exists(const char *zUserID){
19631963
int rc = db_exists(
19641964
"SELECT 1 FROM user WHERE login=%Q "
19651965
"UNION ALL "
19661966
"SELECT 1 FROM event WHERE user=%Q OR euser=%Q",
19671967
zUserID, zUserID, zUserID
@@ -2146,11 +2146,11 @@
21462146
iErrLine = 5;
21472147
zErr = "Passwords do not match";
21482148
}else if( (uid = email_address_in_use(zEAddr))!=0 ){
21492149
iErrLine = 3;
21502150
zErr = "This email address is already associated with a user";
2151
- }else if( login_self_choosen_userid_already_exists(zUserID) ){
2151
+ }else if( login_self_chosen_userid_already_exists(zUserID) ){
21522152
iErrLine = 1;
21532153
zErr = "This User ID is already taken. Choose something different.";
21542154
}else{
21552155
/* If all of the tests above have passed, that means that the submitted
21562156
** form contains valid data and we can proceed to create the new login */
21572157
--- src/login.c
+++ src/login.c
@@ -1957,11 +1957,11 @@
1957 /*
1958 ** Check to see if the candidate username zUserID is already used.
1959 ** Return 1 if it is already in use. Return 0 if the name is
1960 ** available for a self-registration.
1961 */
1962 static int login_self_choosen_userid_already_exists(const char *zUserID){
1963 int rc = db_exists(
1964 "SELECT 1 FROM user WHERE login=%Q "
1965 "UNION ALL "
1966 "SELECT 1 FROM event WHERE user=%Q OR euser=%Q",
1967 zUserID, zUserID, zUserID
@@ -2146,11 +2146,11 @@
2146 iErrLine = 5;
2147 zErr = "Passwords do not match";
2148 }else if( (uid = email_address_in_use(zEAddr))!=0 ){
2149 iErrLine = 3;
2150 zErr = "This email address is already associated with a user";
2151 }else if( login_self_choosen_userid_already_exists(zUserID) ){
2152 iErrLine = 1;
2153 zErr = "This User ID is already taken. Choose something different.";
2154 }else{
2155 /* If all of the tests above have passed, that means that the submitted
2156 ** form contains valid data and we can proceed to create the new login */
2157
--- src/login.c
+++ src/login.c
@@ -1957,11 +1957,11 @@
1957 /*
1958 ** Check to see if the candidate username zUserID is already used.
1959 ** Return 1 if it is already in use. Return 0 if the name is
1960 ** available for a self-registration.
1961 */
1962 static int login_self_chosen_userid_already_exists(const char *zUserID){
1963 int rc = db_exists(
1964 "SELECT 1 FROM user WHERE login=%Q "
1965 "UNION ALL "
1966 "SELECT 1 FROM event WHERE user=%Q OR euser=%Q",
1967 zUserID, zUserID, zUserID
@@ -2146,11 +2146,11 @@
2146 iErrLine = 5;
2147 zErr = "Passwords do not match";
2148 }else if( (uid = email_address_in_use(zEAddr))!=0 ){
2149 iErrLine = 3;
2150 zErr = "This email address is already associated with a user";
2151 }else if( login_self_chosen_userid_already_exists(zUserID) ){
2152 iErrLine = 1;
2153 zErr = "This User ID is already taken. Choose something different.";
2154 }else{
2155 /* If all of the tests above have passed, that means that the submitted
2156 ** form contains valid data and we can proceed to create the new login */
2157
+1 -1
--- src/name.c
+++ src/name.c
@@ -2215,11 +2215,11 @@
22152215
** --delta Show all delta-phantoms. A delta-phantom is a
22162216
** artifact for which there is a delta but the delta
22172217
** source is a phantom.
22182218
** --list Just list the phantoms. Do not try to describe them.
22192219
*/
2220
-void test_phatoms_cmd(void){
2220
+void test_phantoms_cmd(void){
22212221
int bDelta;
22222222
int bList;
22232223
int bCount;
22242224
unsigned nPhantom = 0;
22252225
unsigned nDeltaPhantom = 0;
22262226
--- src/name.c
+++ src/name.c
@@ -2215,11 +2215,11 @@
2215 ** --delta Show all delta-phantoms. A delta-phantom is a
2216 ** artifact for which there is a delta but the delta
2217 ** source is a phantom.
2218 ** --list Just list the phantoms. Do not try to describe them.
2219 */
2220 void test_phatoms_cmd(void){
2221 int bDelta;
2222 int bList;
2223 int bCount;
2224 unsigned nPhantom = 0;
2225 unsigned nDeltaPhantom = 0;
2226
--- src/name.c
+++ src/name.c
@@ -2215,11 +2215,11 @@
2215 ** --delta Show all delta-phantoms. A delta-phantom is a
2216 ** artifact for which there is a delta but the delta
2217 ** source is a phantom.
2218 ** --list Just list the phantoms. Do not try to describe them.
2219 */
2220 void test_phantoms_cmd(void){
2221 int bDelta;
2222 int bList;
2223 int bCount;
2224 unsigned nPhantom = 0;
2225 unsigned nDeltaPhantom = 0;
2226

Keyboard Shortcuts

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