Skip to content

Commit

Permalink
Ensuring we use the right core count, fixing a typo on the HTTP metho…
Browse files Browse the repository at this point in the history
…d check
  • Loading branch information
wberube committed Aug 28, 2024
1 parent 4b2b418 commit 7a62ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hal/support.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void hal_identify(void) {
if (package[2] == 'A')
strcpy(chip, "SSC33[8/9]G");
else {
if (sysconf(_SC_NPROCESSORS_ONLN) == 1)
if (sysconf(_SC_NPROCESSORS_CONF) == 1)
strcpy(chip, "SSC30K");
else
strcpy(chip, "SSC33[6/8]");
Expand Down Expand Up @@ -287,7 +287,7 @@ void hal_identify(void) {
#endif

#if defined(__riscv) || defined(__riscv__)
if (!access("/proc/cvi", F_OK)) {
if (!access("/proc/cvi", F_OK)) {
plat = HAL_PLATFORM_CVI;
strcpy(family, "CV181x");
chnCount = CVI_VENC_CHN_NUM;
Expand Down
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ void *server_thread(void *vargp) {

parse_request(client_fd, request);

if (!EQUALS(method, "GET") || !EQUALS(method, "POST")) {
if (!EQUALS(method, "GET") && !EQUALS(method, "POST")) {
send_and_close(client_fd, (char*)error405, strlen(error405));
continue;
}
Expand Down

0 comments on commit 7a62ac2

Please sign in to comment.