ldap_set_option(ld, LDAP_OPT_REFERRALS, value);
}
static void
-squid_ldap_set_timelimit(LDAP * ld, int timelimit)
+squid_ldap_set_timelimit(LDAP * ld, int aTimeLimit)
{
- ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &timelimit);
+ ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &aTimeLimit);
}
static void
-squid_ldap_set_connect_timeout(LDAP * ld, int timelimit)
+squid_ldap_set_connect_timeout(LDAP * ld, int aTimeLimit)
{
#if defined(LDAP_OPT_NETWORK_TIMEOUT)
struct timeval tv;
- tv.tv_sec = timelimit;
+ tv.tv_sec = aTimeLimit;
tv.tv_usec = 0;
ldap_set_option(ld, LDAP_OPT_NETWORK_TIMEOUT, &tv);
#elif defined(LDAP_X_OPT_CONNECT_TIMEOUT)
- timelimit *= 1000;
- ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &timelimit);
+ aTimeLimit *= 1000;
+ ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &aTimeLimit);
#endif
}
static void
/* Disconnect the TCP connection to the server */
int
-RFCNB_Close(int socket)
+RFCNB_Close(int aSocket)
{
- close(socket);
+ close(aSocket);
/* If we want to do error recovery, here is where we put it */
int
Valid_User(char *USERNAME, char *PASSWORD, char *SERVER, char *BACKUP, char *DOMAIN)
{
- const char *SMB_Prots[] = {"PC NETWORK PROGRAM 1.0",
+ const char *supportedDialects[] = {"PC NETWORK PROGRAM 1.0",
"MICROSOFT NETWORKS 1.03",
"MICROSOFT NETWORKS 3.0",
"LANMAN1.0",
return (NTV_SERVER_ERROR);
}
}
- if (SMB_Negotiate(con, SMB_Prots) < 0) { /* An error */
+ if (SMB_Negotiate(con, supportedDialects) < 0) { /* An error */
SMB_Discon(con, 0);
return (NTV_PROTOCOL_ERROR);
}
* Generate a random vector.
*/
static void
-random_vector(char *vector)
+random_vector(char *aVector)
{
int randno;
int i;
srand((time(0) ^ rand()) + rand());
for (i = 0; i < AUTH_VECTOR_LEN;) {
randno = rand();
- memcpy(vector, &randno, sizeof(int));
- vector += sizeof(int);
+ memcpy(aVector, &randno, sizeof(int));
+ aVector += sizeof(int);
i += sizeof(int);
}
}
ldap_set_option(ld, LDAP_OPT_REFERRALS, value);
}
static void
-squid_ldap_set_timelimit(int timelimit)
+squid_ldap_set_timelimit(int aTimeLimit)
{
- ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &timelimit);
+ ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &aTimeLimit);
}
static void
-squid_ldap_set_connect_timeout(int timelimit)
+squid_ldap_set_connect_timeout(int aTimeLimit)
{
#if defined(LDAP_OPT_NETWORK_TIMEOUT)
struct timeval tv;
- tv.tv_sec = timelimit;
+ tv.tv_sec = aTimeLimit;
tv.tv_usec = 0;
ldap_set_option(ld, LDAP_OPT_NETWORK_TIMEOUT, &tv);
#elif defined(LDAP_X_OPT_CONNECT_TIMEOUT)
- timelimit *= 1000;
- ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &timelimit);
+ aTimeLimit *= 1000;
+ ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &aTimeLimit);
#endif
}
ld->ld_options &= ~LDAP_OPT_REFERRALS;
}
static void
-squid_ldap_set_timelimit(int timelimit)
+squid_ldap_set_timelimit(int aTimeLimit)
{
- ld->ld_timelimit = timelimit;
+ ld->ld_timelimit = aTimeLimit;
}
static void
-squid_ldap_set_connect_timeout(int timelimit)
+squid_ldap_set_connect_timeout(int aTimeLimit)
{
fprintf(stderr, "Connect timeouts not supported in your LDAP library\n");
}
ldap_set_option(ld, LDAP_OPT_REFERRALS, value);
}
static void
-squid_ldap_set_timelimit(int timelimit)
+squid_ldap_set_timelimit(int aTimeLimit)
{
- ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &timelimit);
+ ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &aTimeLimit);
}
static void
-squid_ldap_set_connect_timeout(int timelimit)
+squid_ldap_set_connect_timeout(int aTimeLimit)
{
#if defined(LDAP_OPT_NETWORK_TIMEOUT)
struct timeval tv;
- tv.tv_sec = timelimit;
+ tv.tv_sec = aTimeLimit;
tv.tv_usec = 0;
ldap_set_option(ld, LDAP_OPT_NETWORK_TIMEOUT, &tv);
#elif defined(LDAP_X_OPT_CONNECT_TIMEOUT)
- timelimit *= 1000;
- ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &timelimit);
+ aTimeLimit *= 1000;
+ ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &aTimeLimit);
#endif
}
ld->ld_options &= ~LDAP_OPT_REFERRALS;
}
static void
-squid_ldap_set_timelimit(int timelimit)
+squid_ldap_set_timelimit(int aTimeLimit)
{
- ld->ld_timelimit = timelimit;
+ ld->ld_timelimit = aTimeLimit;
}
static void
-squid_ldap_set_connect_timeout(int timelimit)
+squid_ldap_set_connect_timeout(int aTimeLimit)
{
fprintf(stderr, "Connect timeouts not supported in your LDAP library\n");
}
}
static void
-read_passwd_file(const char *passwdfile, int isHa1Mode)
+read_passwd_file(const char *passwordFile, int isHa1Mode)
{
FILE *f;
char buf[8192];
fprintf(stderr, "digest_pw_auth: cannot create hash table\n");
exit(1);
}
- f = fopen(passwdfile, "r");
+ f = fopen(passwordFile, "r");
while (fgets(buf, 8192, f) != NULL) {
if ((buf[0] == '#') || (buf[0] == ' ') || (buf[0] == '\t') ||
(buf[0] == '\n'))
ldap_set_option(ld, LDAP_OPT_REFERRALS, value);
}
static void
-squid_ldap_set_timelimit(LDAP * ld, int timelimit)
+squid_ldap_set_timelimit(LDAP * ld, int aTimeLimit)
{
- ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &timelimit);
+ ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &aTimeLimit);
}
static void
-squid_ldap_set_connect_timeout(LDAP * ld, int timelimit)
+squid_ldap_set_connect_timeout(LDAP * ld, int aTimeLimit)
{
#if defined(LDAP_OPT_NETWORK_TIMEOUT)
struct timeval tv;
- tv.tv_sec = timelimit;
+ tv.tv_sec = aTimeLimit;
tv.tv_usec = 0;
ldap_set_option(ld, LDAP_OPT_NETWORK_TIMEOUT, &tv);
#elif defined(LDAP_X_OPT_CONNECT_TIMEOUT)
- timelimit *= 1000;
- ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &timelimit);
+ aTimeLimit *= 1000;
+ ldap_set_option(ld, LDAP_X_OPT_CONNECT_TIMEOUT, &aTimeLimit);
#endif
}
static void
/* Disconnect the TCP connection to the server */
int
-RFCNB_Close(int socket)
+RFCNB_Close(int aSocket)
{
- close(socket);
+ close(aSocket);
/* If we want to do error recovery, here is where we put it */
Valid_User(char *username, char *password, char *server, char *backup, char *domain)
{
int pass_is_precrypted_p = 0;
- char const *SMB_Prots[] = {
+ char const *supportedDialects[] = {
/* "PC NETWORK PROGRAM 1.0", */
/* "MICROSOFT NETWORKS 1.03", */
/* "MICROSOFT NETWORKS 3.0", */
return (NTV_SERVER_ERROR);
}
}
- if (SMB_Negotiate(con, SMB_Prots) < 0) { /* An error */
+ if (SMB_Negotiate(con, supportedDialects) < 0) { /* An error */
SMB_Discon(con, 0);
return (NTV_PROTOCOL_ERROR);
}
break;
}
if (NULL != request) {
- Packer p;
+ Packer pck;
String urlpath_or_slash;
if (request->urlpath.size() != 0)
RequestMethodStr(request->method),
SQUIDSTRINGPRINT(urlpath_or_slash),
request->http_ver.major, request->http_ver.minor);
- packerToMemInit(&p, &mb);
- request->header.packInto(&p);
- packerClean(&p);
+ packerToMemInit(&pck, &mb);
+ request->header.packInto(&pck);
+ packerClean(&pck);
} else if (request_hdrs) {
p = request_hdrs;
} else {
}
-ev_entry::ev_entry(char const * aName, EVH * aFunction, void * aArgument, double when,
- int weight, bool haveArgument) : name(aName), func(aFunction),
- arg(haveArgument ? cbdataReference(aArgument) : aArgument), when(when), weight(weight),
+ev_entry::ev_entry(char const * aName, EVH * aFunction, void * aArgument, double evWhen,
+ int aWeight, bool haveArgument) : name(aName), func(aFunction),
+ arg(haveArgument ? cbdataReference(aArgument) : aArgument), when(evWhen), weight(aWeight),
cbdata(haveArgument)
{
}
p->type = 0;
while (ct && *ct) {
- time_t t;
+ time_t tm;
int l = strcspn(ct, ",");
char *tmp;
break;
case 'm':
- t = (time_t) strtol(ct + 1, &tmp, 0);
+ tm = (time_t) strtol(ct + 1, &tmp, 0);
if (tmp != ct + 1)
break; /* not a valid integer */
- p->date = xstrdup(ctime(&t));
+ p->date = xstrdup(ctime(&tm));
*(strstr(p->date, "\n")) = '\0';
{
// we may need to grow the buffer if headers do not fit
const int minRead = flags.headers_parsed ? 0 :1024;
- const int read_sz = replyBodySpace(*readBuf, minRead);
+ const int read_size = replyBodySpace(*readBuf, minRead);
debugs(11,9, HERE << (flags.do_next_read ? "may" : "wont") <<
- " read up to " << read_sz << " bytes from FD " << fd);
+ " read up to " << read_size << " bytes from FD " << fd);
/*
* why <2? Because delayAwareRead() won't actually read if
* handler until we get a notification from someone that
* its okay to read again.
*/
- if (read_sz < 2)
+ if (read_size < 2)
return;
if (flags.do_next_read) {
flags.do_next_read = 0;
typedef CommCbMemFunT<HttpStateData, CommIoCbParams> Dialer;
- entry->delayAwareRead(fd, readBuf->space(read_sz), read_sz,
+ entry->delayAwareRead(fd, readBuf->space(read_size), read_size,
asyncCall(11, 5, "HttpStateData::readReply",
Dialer(this, &HttpStateData::readReply)));
}
swap_dirn = -1;
}
-StoreEntry::StoreEntry(const char *url, const char *log_url)
+StoreEntry::StoreEntry(const char *aUrl, const char *aLogUrl)
{
debugs(20, 3, HERE << "new StoreEntry " << this);
- mem_obj = new MemObject(url, log_url);
+ mem_obj = new MemObject(aUrl, aLogUrl);
expires = lastmod = lastref = timestamp = -1;
}
void
-StoreEntry::createMemObject(const char *url, const char *log_url)
+StoreEntry::createMemObject(const char *aUrl, const char *aLogUrl)
{
if (mem_obj)
return;
- mem_obj = new MemObject(url, log_url);
+ mem_obj = new MemObject(aUrl, aLogUrl);
}
/* this just sets DELAY_SENDING */