Skip to content

Commit 9270bbc

Browse files
committed
Merge branch 'typo-fix'
2 parents 9a32590 + d4a9354 commit 9270bbc

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎CommandLine.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ int CommandLine_run(int argc, char** argv) {
426426
#endif /* NDEBUG */
427427
int r = Settings_write(settings, false);
428428
if (r < 0)
429-
fprintf(stderr, "Can not save configuration to %s: %s\n", settings->filename, strerror(-r));
429+
fprintf(stderr, "Cannot save configuration to %s: %s\n", settings->filename, strerror(-r));
430430
}
431431

432432
Header_delete(header);

‎docs/styleguide.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Thus when you want to use such features you should try to have an alternative av
215215

216216
An example for this are functions like `fstatat` on Linux that extend the kernel API on modern systems.
217217
But even though it has been around for over a decade you are asked to provide a POSIX alternative like emulating such calls by `fstat` if this is doable.
218-
If an alternative can not be provided you should gracefully downgrade. That could make a feature that requires this shiny API unavailable on systems that lack support for that API. Make this case visually clear to the user.
218+
If an alternative cannot be provided you should gracefully downgrade. That could make a feature that requires this shiny API unavailable on systems that lack support for that API. Make this case visually clear to the user.
219219

220220
In general, code written for the project should be able to compile on any C99-compliant compiler.
221221

‎dragonflybsd/DragonFlyBSDMachine.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static void DragonFlyBSDMachine_scanMemoryInfo(Machine* super) {
233233
// user_free (avail to procs) = buffers + inactive + cache + free
234234
size_t len = sizeof(super->totalMem);
235235

236-
//disabled for now, as it is always smaller than phycal amount of memory...
236+
//disabled for now, as it is always smaller than physical amount of memory...
237237
//...to avoid "where is my memory?" questions
238238
//sysctl(MIB_vm_stats_vm_v_page_count, 4, &(this->totalMem), &len, NULL, 0);
239239
//this->totalMem *= pageSizeKb;

‎freebsd/FreeBSDMachine.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static void FreeBSDMachine_scanMemoryInfo(Machine* super) {
331331
size_t len;
332332
struct vmtotal vmtotal;
333333

334-
//disabled for now, as it is always smaller than phycal amount of memory...
334+
//disabled for now, as it is always smaller than physical amount of memory...
335335
//...to avoid "where is my memory?" questions
336336
//sysctl(MIB_vm_stats_vm_v_page_count, 4, &(super->totalMem), &len, NULL, 0);
337337
//super->totalMem *= this->pageSizeKb;

‎linux/LinuxProcess.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ void Process_delete(Object* cast) {
138138
[1] Note that before kernel 2.6.26 a process that has not asked for
139139
an io priority formally uses "none" as scheduling class, but the
140140
io scheduler will treat such processes as if it were in the best
141-
effort class. The priority within the best effort class will be
142-
dynamically derived from the cpu nice level of the process:
141+
effort class. The priority within the best effort class will be
142+
dynamically derived from the cpu nice level of the process:
143143
io_priority = (cpu_nice + 20) / 5. -- From ionice(1) man page
144144
*/
145145
static int LinuxProcess_effectiveIOPriority(const LinuxProcess* this) {

‎linux/Platform.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,19 +1042,19 @@ static int dropCapabilities(enum CapMode mode) {
10421042

10431043
cap_t caps = cap_init();
10441044
if (caps == NULL) {
1045-
fprintf(stderr, "Error: can not initialize capabilities: %s\n", strerror(errno));
1045+
fprintf(stderr, "Error: cannot initialize capabilities: %s\n", strerror(errno));
10461046
return -1;
10471047
}
10481048

10491049
if (cap_clear(caps) < 0) {
1050-
fprintf(stderr, "Error: can not clear capabilities: %s\n", strerror(errno));
1050+
fprintf(stderr, "Error: cannot clear capabilities: %s\n", strerror(errno));
10511051
cap_free(caps);
10521052
return -1;
10531053
}
10541054

10551055
cap_t currCaps = cap_get_proc();
10561056
if (currCaps == NULL) {
1057-
fprintf(stderr, "Error: can not get current process capabilities: %s\n", strerror(errno));
1057+
fprintf(stderr, "Error: cannot get current process capabilities: %s\n", strerror(errno));
10581058
cap_free(caps);
10591059
return -1;
10601060
}
@@ -1065,7 +1065,7 @@ static int dropCapabilities(enum CapMode mode) {
10651065

10661066
cap_flag_value_t current;
10671067
if (cap_get_flag(currCaps, keepcaps[i], CAP_PERMITTED, &current) < 0) {
1068-
fprintf(stderr, "Error: can not get current value of capability %d: %s\n", keepcaps[i], strerror(errno));
1068+
fprintf(stderr, "Error: cannot get current value of capability %d: %s\n", keepcaps[i], strerror(errno));
10691069
cap_free(currCaps);
10701070
cap_free(caps);
10711071
return -1;
@@ -1075,22 +1075,22 @@ static int dropCapabilities(enum CapMode mode) {
10751075
continue;
10761076

10771077
if (cap_set_flag(caps, CAP_PERMITTED, 1, &keepcaps[i], CAP_SET) < 0) {
1078-
fprintf(stderr, "Error: can not set permitted capability %d: %s\n", keepcaps[i], strerror(errno));
1078+
fprintf(stderr, "Error: cannot set permitted capability %d: %s\n", keepcaps[i], strerror(errno));
10791079
cap_free(currCaps);
10801080
cap_free(caps);
10811081
return -1;
10821082
}
10831083

10841084
if (cap_set_flag(caps, CAP_EFFECTIVE, 1, &keepcaps[i], CAP_SET) < 0) {
1085-
fprintf(stderr, "Error: can not set effective capability %d: %s\n", keepcaps[i], strerror(errno));
1085+
fprintf(stderr, "Error: cannot set effective capability %d: %s\n", keepcaps[i], strerror(errno));
10861086
cap_free(currCaps);
10871087
cap_free(caps);
10881088
return -1;
10891089
}
10901090
}
10911091

10921092
if (cap_set_proc(caps) < 0) {
1093-
fprintf(stderr, "Error: can not set process capabilities: %s\n", strerror(errno));
1093+
fprintf(stderr, "Error: cannot set process capabilities: %s\n", strerror(errno));
10941094
cap_free(currCaps);
10951095
cap_free(caps);
10961096
return -1;

‎linux/PressureStallMeter.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void PressureStallMeter_updateValues(Meter* this) {
4848

4949
Platform_getPressureStall(file, some, &this->values[0], &this->values[1], &this->values[2]);
5050

51-
/* only print bar for ten (not sixty and threehundred), cause the sum is meaningless */
51+
/* only print bar for ten (not sixty and three hundred), cause the sum is meaningless */
5252
this->curItems = 1;
5353

5454
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "%s %s %5.2lf%% %5.2lf%% %5.2lf%%", some ? "some" : "full", file, this->values[0], this->values[1], this->values[2]);

‎solaris/Platform.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ in the source distribution for its full text.
1212
#include <kstat.h>
1313

1414
/* On OmniOS /usr/include/sys/regset.h redefines ERR to 13 - \r, breaking the Enter key.
15-
* Since ncruses macros use the ERR macro, we can not use another name.
15+
* Since ncruses macros use the ERR macro, we cannot use another name.
1616
*/
1717
#undef ERR
1818
#include <libproc.h>

‎solaris/SolarisProcess.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ in the source distribution for its full text.
1212
#include <sys/proc.h>
1313

1414
/* On OmniOS /usr/include/sys/regset.h redefines ERR to 13 - \r, breaking the Enter key.
15-
* Since ncruses macros use the ERR macro, we can not use another name.
15+
* Since ncruses macros use the ERR macro, we cannot use another name.
1616
*/
1717
#undef ERR
1818
#include <libproc.h>

0 commit comments

Comments
 (0)