ref: f97cf2ac238cb993721405e5c7641f3995d8a468
parent: e3ad3d6968f4fd4cbb325e081ac9027d24f01316
author: cinap_lenrek <[email protected]>
date: Sun Mar 17 13:27:52 EDT 2024
kernel: delcare nalemenerror() and faulterror() as _Noreturn
--- a/sys/src/9/port/chan.c
+++ b/sys/src/9/port/chan.c
@@ -1202,7 +1202,7 @@
}
}
-void
+_Noreturn void
namelenerror(char *aname, int len, char *err)
{
char *ename, *name, *next;
--- a/sys/src/9/port/fault.c
+++ b/sys/src/9/port/fault.c
@@ -5,7 +5,7 @@
#include "fns.h"
#include "../port/error.h"
-static void
+_Noreturn static void
faulterror(char *s, Chan *c)
{
char buf[ERRMAX];
--- a/sys/src/9/port/portfns.h
+++ b/sys/src/9/port/portfns.h
@@ -206,7 +206,7 @@
void mul64fract(uvlong*, uvlong, uvlong);
void muxclose(Mnt*);
Chan* namec(char*, int, int, ulong);
-void namelenerror(char*, int, char*);
+_Noreturn void namelenerror(char*, int, char*);
int needpages(void*);
Chan* newchan(void);
int newfd(Chan*, int);