console-server.c (e2826c7def432a5c8f694ffb87355cb80862612b) | console-server.c (079fc516efb9e0017b9ae66d558f2cdb423caaa6) |
---|---|
1/** 2 * Console server process for OpenBMC 3 * 4 * Copyright © 2016 IBM Corporation 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at --- 532 unchanged lines hidden (view full) --- 541 size_t i; 542 543 n_types = &__stop_handlers - &__start_handlers; 544 console->handlers = calloc(n_types, sizeof(struct handler *)); 545 if (!console->handlers) { 546 err(EXIT_FAILURE, "malloc(handlers)"); 547 } 548 | 1/** 2 * Console server process for OpenBMC 3 * 4 * Copyright © 2016 IBM Corporation 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at --- 532 unchanged lines hidden (view full) --- 541 size_t i; 542 543 n_types = &__stop_handlers - &__start_handlers; 544 console->handlers = calloc(n_types, sizeof(struct handler *)); 545 if (!console->handlers) { 546 err(EXIT_FAILURE, "malloc(handlers)"); 547 } 548 |
549 printf("%ld handler type%s\n", n_types, n_types == 1 ? "" : "s"); | 549 printf("%zu handler type%s\n", n_types, n_types == 1 ? "" : "s"); |
550 551 for (i = 0; i < n_types; i++) { 552 const struct handler_type *type = &__start_handlers[i]; 553 struct handler *handler; 554 555 /* Should be picked up at build time by 556 * console_handler_register, but check anyway 557 */ --- 459 unchanged lines hidden --- | 550 551 for (i = 0; i < n_types; i++) { 552 const struct handler_type *type = &__start_handlers[i]; 553 struct handler *handler; 554 555 /* Should be picked up at build time by 556 * console_handler_register, but check anyway 557 */ --- 459 unchanged lines hidden --- |