aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-09-23 21:40:42 +0000
committersotech117 <michael_foiani@brown.edu>2023-09-23 21:40:42 +0000
commitb5f967167c1dd80b2845874f0fc704a5c4838005 (patch)
tree938262cf30d0e144ae22e4012a1323446d15d1e9
parent0b479a1e8b702cf90caa7705a4008352645bb0a7 (diff)
small changes
-rw-r--r--server.c6
-rwxr-xr-xsnowcast_serverbin28720 -> 28720 bytes
2 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index e45dc53..aed8904 100644
--- a/server.c
+++ b/server.c
@@ -113,7 +113,7 @@ main(int argc, char *argv[])
}
// make array of user data
- printf("max active users: %d\n", sizeof(user_t) * max_active_users);
+ // printf("max active users: %d\n", sizeof(user_t) * max_active_users);
user_data = malloc(sizeof(user_t) * max_active_users);
if (!user_data) { perror("malloc userdata"); return 1; }
sockfd_to_user = malloc(sizeof(int) * max_active_users);
@@ -211,7 +211,7 @@ void *stream_routine_cleanup(void *arg) {
void *stream_routine(void *arg) {
int station_num = (int) arg;
- printf("stream routine %d\n", station_num);
+ // printf("stream routine %d\n", station_num);
int read_fd = stations[station_num].readfd;
pthread_cleanup_push(stream_routine_cleanup, read_fd);
@@ -283,7 +283,7 @@ int setup_stations(int argc, char *argv[]) {
pthread_create(&stations[i].streamThread, NULL, stream_routine, i);
}
- printf("successfully created %d stations\n", num_stations);
+ // printf("successfully created %d stations\n", num_stations);
return 1;
}
diff --git a/snowcast_server b/snowcast_server
index c99b1c2..7516d88 100755
--- a/snowcast_server
+++ b/snowcast_server
Binary files differ