Here's another example of a dubious diff using histogram: @@ -50,8 +65,11 @@ .SH Examples nxt_unit_ctx_t *ctx; nxt_unit_init_t init; - bzero(&init, sizeof(nxt_unit_init_t)); + if (argc == 3 && strcmp(argv[1], "-t") == 0) { + nthreads = atoi(argv[2]); + } + bzero(&init, sizeof(nxt_unit_init_t)); init.callbacks.request_handler = &request_handler; init.callbacks.ready_handler = &ready_handler; That call to bzero(3) is the only one in the entire file. patience shows this instead: @@ -50,8 +65,11 @@ .SH Examples nxt_unit_ctx_t *ctx; nxt_unit_init_t init; + if (argc == 3 && strcmp(argv[1], "-t") == 0) { + nthreads = atoi(argv[2]); + } + bzero(&init, sizeof(nxt_unit_init_t)); - init.callbacks.request_handler = &request_handler; init.callbacks.ready_handler = &ready_handler; -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature