summaryrefslogtreecommitdiff
path: root/shared-module/ipaddress
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2021-03-16 12:21:50 -0500
committerJeff Epler <jepler@gmail.com>2021-03-16 12:21:50 -0500
commit58679dc038e475d7cd00ee45256b7f906ecc2240 (patch)
tree30cbc3f9e7e4efc81a43f364d554f33c1df34169 /shared-module/ipaddress
parent97b6664201de2530c9b92957a5e8d2a68524fa7e (diff)
parentbc690d4070c69e21d9070badc9f56a15d62ffb5d (diff)
Merge remote-tracking branch 'origin/main' into bitmap-read-2
Diffstat (limited to 'shared-module/ipaddress')
-rw-r--r--shared-module/ipaddress/IPv4Address.c4
-rw-r--r--shared-module/ipaddress/__init__.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/shared-module/ipaddress/IPv4Address.c b/shared-module/ipaddress/IPv4Address.c
index f573d9d0a..6850fcadc 100644
--- a/shared-module/ipaddress/IPv4Address.c
+++ b/shared-module/ipaddress/IPv4Address.c
@@ -30,10 +30,10 @@
#include "shared-bindings/ipaddress/IPv4Address.h"
-void common_hal_ipaddress_ipv4address_construct(ipaddress_ipv4address_obj_t* self, uint8_t* buf, size_t len) {
+void common_hal_ipaddress_ipv4address_construct(ipaddress_ipv4address_obj_t *self, uint8_t *buf, size_t len) {
self->ip_bytes = mp_obj_new_bytes(buf, len);
}
-mp_obj_t common_hal_ipaddress_ipv4address_get_packed(ipaddress_ipv4address_obj_t* self) {
+mp_obj_t common_hal_ipaddress_ipv4address_get_packed(ipaddress_ipv4address_obj_t *self) {
return self->ip_bytes;
}
diff --git a/shared-module/ipaddress/__init__.c b/shared-module/ipaddress/__init__.c
index a8f8e1caf..9d98c0eb7 100644
--- a/shared-module/ipaddress/__init__.c
+++ b/shared-module/ipaddress/__init__.c
@@ -28,8 +28,8 @@
#include "shared-bindings/ipaddress/IPv4Address.h"
mp_obj_t common_hal_ipaddress_new_ipv4address(uint32_t value) {
- ipaddress_ipv4address_obj_t* self = m_new_obj(ipaddress_ipv4address_obj_t);
+ ipaddress_ipv4address_obj_t *self = m_new_obj(ipaddress_ipv4address_obj_t);
self->base.type = &ipaddress_ipv4address_type;
- common_hal_ipaddress_ipv4address_construct(self, (uint8_t*) &value, 4);
+ common_hal_ipaddress_ipv4address_construct(self, (uint8_t *)&value, 4);
return MP_OBJ_FROM_PTR(self);
}