Sophiel Zhou, le lun. 08 juin 2026 02:24:13 +0800, a ecrit:
> Replace inconsistent mix of tabs and spaces with spaces throughout,
No, it is not inconsistent. We just replace occurrences of leading 8
spaces with a tab, that's a very common practice. You just need to
follow it in your previous two patches. You should be able to teach
your code editor to follow it, in vim for instance it's the noexpandtab
configuration.
Samuel
> ---
> pfinet/pfinet-ops.c | 46 ++++++++++++++++++++++-----------------------
> 1 file changed, 23 insertions(+), 23 deletions(-)
>
> diff --git a/pfinet/pfinet-ops.c b/pfinet/pfinet-ops.c
> index 00e7fbbe..0c830a66 100644
> --- a/pfinet/pfinet-ops.c
> +++ b/pfinet/pfinet-ops.c
> @@ -77,18 +77,18 @@ S_pfinet_siocgifconf (io_t port,
> {
> /* Possibly allocate a new buffer. */
> if (*len < amount)
> - {
> - ifc.ifc_buf = (char *) mmap (0, amount, PROT_READ|PROT_WRITE,
> - MAP_ANON, 0, 0);
> - if (ifc.ifc_buf == MAP_FAILED)
> - {
> - pthread_mutex_unlock(&global_lock);
> - /* Should use errno here, but glue headers #undef errno */
> - return ENOMEM;
> - }
> - }
> + {
> + ifc.ifc_buf = (char *) mmap (0, amount, PROT_READ|PROT_WRITE,
> + MAP_ANON, 0, 0);
> + if (ifc.ifc_buf == MAP_FAILED)
> + {
> + pthread_mutex_unlock(&global_lock);
> + /* Should use errno here, but glue headers #undef errno */
> + return ENOMEM;
> + }
> + }
> else
> - ifc.ifc_buf = *ifr;
> + ifc.ifc_buf = *ifr;
> err = dev_ifconf ((char *) &ifc);
> }
>
> @@ -157,19 +157,19 @@ S_pfinet_getroutes (io_t port,
> /* Possibly allocate a new buffer. */
> if (*len < amount * sizeof(ifrtreq_t))
> {
> - rtable = (ifrtreq_t *) mmap (0, amount * sizeof(ifrtreq_t),
> PROT_READ|PROT_WRITE,
> - MAP_ANON, 0, 0);
> - if (rtable == MAP_FAILED)
> - {
> - pthread_mutex_unlock(&global_lock);
> - /* Should use errno here, but glue headers #undef errno */
> - return ENOMEM;
> - }
> - if (dealloc_data)
> - *dealloc_data = TRUE;
> - }
> + rtable = (ifrtreq_t *) mmap (0, amount * sizeof(ifrtreq_t),
> PROT_READ|PROT_WRITE,
> + MAP_ANON, 0, 0);
> + if (rtable == MAP_FAILED)
> + {
> + pthread_mutex_unlock(&global_lock);
> + /* Should use errno here, but glue headers #undef errno */
> + return ENOMEM;
> + }
> + if (dealloc_data)
> + *dealloc_data = TRUE;
> + }
> else
> - rtable = (ifrtreq_t *)*routes;
> + rtable = (ifrtreq_t *)*routes;
>
> n = get_routing_table (0, n, rtable);
> if (amount > n)
> --
> 2.54.0
>
>
--
Samuel
bien sûr que ça convient mieux à tout le monde
enfin, dans la mesure où tout le monde c'est comme moi
-+- le consensus, c'est facile -+-