Changes in / [f4a42661:b2cbc0b] in mainline
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
meson.build
rf4a42661 rb2cbc0b 36 36 [ 'c', 'cpp' ], 37 37 default_options : ['buildtype=plain', 'c_std=gnu11', 'cpp_std=c++17', 'warning_level=2', 'werror=false', 'b_staticpic=false', 'prefix=/' ], 38 meson_version: '>=0.5 5.0',38 meson_version: '>=0.50.1', 39 39 ) 40 40 -
meson/part/compiler_args/meson.build
rf4a42661 rb2cbc0b 60 60 '-Wall', 61 61 '-Wextra', 62 '-Werror-implicit-function-declaration', 62 63 '-Wwrite-strings', 63 64 '-Wunknown-pragmas', … … 91 92 extra_cflags = extra_common_flags + [ 92 93 '-Wmissing-prototypes', 93 '-Werror-implicit-function-declaration',94 94 95 95 '-Wno-missing-braces', -
meson/part/extra_targets/meson.build
rf4a42661 rb2cbc0b 34 34 '--', 35 35 meson.build_root(), 36 config_py. full_path(),36 config_py.path(), 37 37 meson.source_root() / 'HelenOS.config', 38 38 meson.source_root() / 'defaults', … … 51 51 '--', 52 52 meson.build_root(), 53 config_py. full_path(),53 config_py.path(), 54 54 meson.source_root() / 'HelenOS.config', 55 55 meson.source_root() / 'defaults', … … 77 77 '--', 78 78 meson.source_root() / 'doxygen', 79 doxygen. full_path(),79 doxygen.path(), 80 80 _dox_cfg, 81 81 ]) -
uspace/app/wifi_supplicant/wifi_supplicant.c
rf4a42661 rb2cbc0b 75 75 } 76 76 77 static void nic_addr_format(nic_address_t *addr, char *out, size_t out_size) 78 { 79 snprintf(out, out_size, "%02x:%02x:%02x:%02x:%02x:%02x", 77 static char *nic_addr_format(nic_address_t *addr) 78 { 79 char *str; 80 int rc = asprintf(&str, "%02x:%02x:%02x:%02x:%02x:%02x", 80 81 addr->address[0], addr->address[1], addr->address[2], 81 82 addr->address[3], addr->address[4], addr->address[5]); 83 84 if (rc < 0) 85 return NULL; 86 87 return str; 82 88 } 83 89 … … 257 263 for (uint8_t i = 0; i < scan_results.length; i++) { 258 264 ieee80211_scan_result_t result = scan_results.results[i]; 259 char mac_addr_hex[18];260 nic_addr_format(&result.bssid, mac_addr_hex, 18);261 265 262 266 printf("%16.16s %17s %4d %5s %5s %7s %7s\n", 263 result.ssid, mac_addr_hex,267 result.ssid, nic_addr_format(&result.bssid), 264 268 result.channel, 265 269 enum_name(ieee80211_security_type_strs, result.security.type), -
uspace/drv/nic/ar9271/wmi.c
rf4a42661 rb2cbc0b 230 230 size_t buffer_size = header_size + command_length; 231 231 void *buffer = malloc(buffer_size); 232 if (buffer == NULL) {233 usb_log_error("Failed to allocate WMI message buffer (out of memory).\n");234 return ENOMEM;235 }236 232 237 233 if (command_buffer != NULL) … … 245 241 host2uint16_t_be(++htc_device->sequence_number); 246 242 247 /* Send message (buffer will not be needed afterwards regardless of result). */243 /* Send message. */ 248 244 errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size, 249 245 htc_device->endpoints.wmi_endpoint); 246 if (rc != EOK) { 247 free(buffer); 248 usb_log_error("Failed to send WMI message. Error: %s\n", str_error_name(rc)); 249 return rc; 250 } 251 250 252 free(buffer); 251 if (rc != EOK) {252 usb_log_error("Failed to send WMI message. Error: %s\n", str_error_name(rc));253 return rc;254 }255 253 256 254 bool clean_resp_buffer = false; … … 269 267 response_buffer_size, NULL); 270 268 if (rc != EOK) { 269 free(buffer); 271 270 usb_log_error("Failed to receive WMI message response. " 272 271 "Error: %s\n", str_error_name(rc)); … … 276 275 if (response_buffer_size < sizeof(htc_frame_header_t) + 277 276 sizeof(wmi_command_header_t)) { 277 free(buffer); 278 278 usb_log_error("Corrupted response received.\n"); 279 279 return EINVAL; -
uspace/lib/cpp/include/__bits/adt/hash_table.hpp
rf4a42661 rb2cbc0b 252 252 void swap(hash_table& other) 253 253 noexcept(allocator_traits<allocator_type>::is_always_equal::value && 254 noexcept(s td::swap(declval<Hasher&>(), declval<Hasher&>())) &&255 noexcept(s td::swap(declval<KeyEq&>(), declval<KeyEq&>())))254 noexcept(swap(declval<Hasher&>(), declval<Hasher&>())) && 255 noexcept(swap(declval<KeyEq&>(), declval<KeyEq&>()))) 256 256 { 257 257 std::swap(table_, other.table_); -
uspace/lib/cpp/include/__bits/adt/rbtree.hpp
rf4a42661 rb2cbc0b 233 233 void swap(rbtree& other) 234 234 noexcept(allocator_traits<allocator_type>::is_always_equal::value && 235 noexcept(s td::swap(declval<KeyComp&>(), declval<KeyComp&>())))235 noexcept(swap(declval<KeyComp&>(), declval<KeyComp&>()))) 236 236 { 237 237 std::swap(root_, other.root_); -
uspace/lib/cpp/include/__bits/string/string.hpp
rf4a42661 rb2cbc0b 521 521 522 522 basic_string(size_type n, value_type c, const allocator_type& alloc = allocator_type{}) 523 : data_{}, size_{n}, capacity_{n + 1}, allocator_{alloc}523 : data_{}, size_{n}, capacity_{n}, allocator_{alloc} 524 524 { 525 525 data_ = allocator_.allocate(capacity_); … … 908 908 { 909 909 // TODO: if (n > max_size()) throw length_error. 910 resize_without_copy_(n + 1);910 resize_without_copy_(n); 911 911 traits_type::copy(begin(), str, n); 912 912 size_ = n; -
uspace/lib/cpp/src/__bits/unwind.cpp
rf4a42661 rb2cbc0b 30 30 #include <cstdint> 31 31 #include <cstdlib> 32 #include <typeinfo>33 32 34 33 namespace __cxxabiv1 -
uspace/lib/cpp/src/future.cpp
rf4a42661 rb2cbc0b 84 84 const char* future_error::what() const noexcept 85 85 { 86 /* 87 * FIXME 88 * Following code would be optimal but the message string is 89 * actually destroyed before the function returns so we would 90 * be returning a dangling pointer. No simple fix available, hence 91 * we use the ugly hack. 92 */ 93 //return code().message().c_str(); 94 #define QUOTE_ARG(arg) #arg 95 return "future_error, see " __FILE__ ":" QUOTE_ARG(__LINE__); 86 return code().message().c_str(); 96 87 } 97 88 } -
uspace/lib/ui/test/window.c
rf4a42661 rb2cbc0b 787 787 PCUT_ASSERT_NOT_NULL(window); 788 788 789 kbd_event.type = KEY_PRESS;789 kbd_event.type = POS_PRESS; 790 790 kbd_event.key = KC_X; 791 791 kbd_event.mods = 0; -
uspace/lib/usbdev/include/usb/dev/device.h
rf4a42661 rb2cbc0b 91 91 92 92 usb_address_t usb_device_get_address(const usb_device_t *); 93 u nsignedusb_device_get_depth(const usb_device_t *);93 usb_speed_t usb_device_get_depth(const usb_device_t *); 94 94 usb_speed_t usb_device_get_speed(const usb_device_t *); 95 95 int usb_device_get_iface_number(const usb_device_t *); -
uspace/srv/hid/output/proto/vt100.c
rf4a42661 rb2cbc0b 41 41 #include "vt100.h" 42 42 43 /** Buffer size when creating actual VT100 commands. 44 * 45 * This is absurdly large but since we accept numbers via sysarg_t, 46 * we make it big enough for the largest value to be on the safe side 47 * (and to silence compiler too). 48 * 49 * TODO: find out if VT100 has some hard limits or perhaps simply cut-out 50 * values larger than 16 bits or something. 51 */ 52 #define MAX_CONTROL 64 43 #define MAX_CONTROL 20 53 44 54 45 typedef enum {
Note:
See TracChangeset
for help on using the changeset viewer.