Skip to content

Commit 9d397ef

Browse files
authored
Merge pull request #614 from Zalewa/fix-text
Fix minor text issues
2 parents e3603ef + b9fa653 commit 9d397ef

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

client/argv.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ dupargv (char * const *argv)
6969
{
7070
int argc;
7171
char **copy;
72-
72+
7373
if (argv == NULL)
7474
return NULL;
75-
75+
7676
/* the vector */
7777
for (argc = 0; argv[argc] != NULL; argc++);
7878
copy = (char **) malloc ((argc + 1) * sizeof (char *));
@@ -392,11 +392,11 @@ expandargv (int *argcp, char ***argvp)
392392
/* Free the original options memory. */
393393
free((*argvp)[i]);
394394
/* Now, insert FILE_ARGV into ARGV. The "+1" below handles the
395-
NULL terminator at the end of ARGV. */
396-
*argvp = ((char **)
397-
realloc (*argvp,
395+
NULL terminator at the end of ARGV. */
396+
*argvp = ((char **)
397+
realloc (*argvp,
398398
(*argcp + file_argc + 1) * sizeof (char *)));
399-
memmove (*argvp + i + file_argc, *argvp + i + 1,
399+
memmove (*argvp + i + file_argc, *argvp + i + 1,
400400
(*argcp - i) * sizeof (char *));
401401
memcpy (*argvp + i, file_argv, file_argc * sizeof (char *));
402402
/* The original option has been replaced by all the new

client/client.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ extern Environments parse_icecc_version(const std::string &target, const std::st
9090
class client_error : public std::runtime_error
9191
{
9292
public:
93-
client_error(int code, const std::string& what)
93+
client_error(int code, const std::string& what)
9494
: std::runtime_error(what)
9595
, errorCode(code)
9696
{}
@@ -101,7 +101,7 @@ class client_error : public std::runtime_error
101101
class remote_error : public client_error
102102
{
103103
public:
104-
remote_error(int code, const std::string& what)
104+
remote_error(int code, const std::string& what)
105105
: client_error(code, what)
106106
{}
107107
};

client/local.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ int build_local(CompileJob &job, MsgChannel *local_daemon, struct rusage *used)
330330
arguments.push_back(job.outputFile());
331331
}
332332

333-
vector<char*> argv;
333+
vector<char*> argv;
334334
string argstxt;
335335

336336
for (list<string>::const_iterator it = arguments.begin(); it != arguments.end(); ++it) {
@@ -423,7 +423,7 @@ int build_local(CompileJob &job, MsgChannel *local_daemon, struct rusage *used)
423423
char buf[250];
424424

425425
for (;;) {
426-
int r;
426+
int r;
427427
while ((r = read(pf[0], buf, sizeof(buf) - 1)) > 0) {
428428
buf[r] = '\0';
429429
s_ccout.append(buf);

daemon/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ bool Daemon::setup_listen_unix_fd()
673673
strncpy(myaddr.sun_path, default_socket.c_str() , sizeof(myaddr.sun_path) - 1);
674674
myaddr.sun_path[sizeof(myaddr.sun_path) - 1] = '\0';
675675
if(default_socket.length() > sizeof(myaddr.sun_path) - 1) {
676-
log_error() << "default socket path too long for sun_path" << endl;
676+
log_error() << "default socket path too long for sun_path" << endl;
677677
}
678678
if (-1 == unlink(myaddr.sun_path) && errno != ENOENT){
679679
log_perror("unlink failed") << "\t" << myaddr.sun_path << endl;

scheduler/scheduler.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ static list<CompileServer *> filter_ineligible_servers(Job *job)
664664
trace() << cs->nodeName() << " fails remote job check\n";
665665
return false;
666666
}
667-
667+
668668
return true;
669669
});
670670
return eligible;
@@ -929,7 +929,8 @@ static CompileServer *pick_server(Job *job, SchedulerAlgorithmName schedulerAlgo
929929
<< " load: "
930930
<< selected->load()
931931
<< " can install: "
932-
<< selected->can_install(job);
932+
<< selected->can_install(job)
933+
<< endl;
933934
return selected;
934935
}
935936

services/comm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ bool MsgChannel::update_state()
291291
}
292292

293293
case HAS_MSG:
294-
/* handled elsewere */
294+
/* handled elsewhere */
295295
break;
296296

297297
case ERROR:

services/comm.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,10 @@ class DiscoverSched
396396
}
397397

398398
/* Attempt to get a conenction to the scheduler.
399-
400-
Continue to call this while it returns NULL and timed_out()
399+
400+
Continue to call this while it returns NULL and timed_out()
401401
returns false. If this returns NULL you should wait for either
402-
more data on listen_fd() (use select), or a timeout of your own.
402+
more data on listen_fd() (use select), or a timeout of your own.
403403
*/
404404
MsgChannel *try_get_scheduler();
405405

0 commit comments

Comments
 (0)