Skip to content

Commit

Permalink
Tiny typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirsch committed Oct 24, 2023
1 parent 36048e7 commit b3076d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions grader/assignments/system-calls/parallel-print.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ void parallel_print(uint64_t depth) {
int main(int argc, char** argv) {
uint64_t i;

pids = malloc(sizeof(uint64) * number_of_forks);
pids = malloc(sizeof(uint64_t) * number_of_forks);

sorted_numbers = malloc(sizeof(uint64) * number_of_processes);
sorted_numbers = malloc(sizeof(uint64_t) * number_of_processes);

// prepare data to be printed
i = 0;
Expand Down
6 changes: 3 additions & 3 deletions grader/assignments/system-calls/sum-exit-code.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ uint64_t parallel_sum(uint64_t depth) {
int main(int argc, char** argv) {
uint64_t i;

status = malloc(sizeof(uint64));
status = malloc(sizeof(uint64_t));

pids = malloc(sizeof(uint64) * number_of_forks);
pids = malloc(sizeof(uint64_t) * number_of_forks);

sorted_numbers = malloc(sizeof(uint64) * number_of_processes);
sorted_numbers = malloc(sizeof(uint64_t) * number_of_processes);

// prepare data to be printed
i = 0;
Expand Down
2 changes: 1 addition & 1 deletion selfie.c
Original file line number Diff line number Diff line change
Expand Up @@ -7610,7 +7610,7 @@ void implement_read(uint64_t* context) {
IO_buffer = touch(smalloc(IO_buffer_size), IO_buffer_size);
}

// read syscal may read less than size bytes
// read syscall may read less than size bytes
// zero buffer up to integer-aligned size
zero_memory(IO_buffer, round_up(size, sizeof(uint64_t)));

Expand Down

0 comments on commit b3076d0

Please sign in to comment.