aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-03-18 15:45:17 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-03-18 15:45:17 +0000
commit4594ed03e4ced04cb914c8fccad1ffab41cc4ee5 (patch)
treed6cbf9fdc8c32ad872087a22f8783686c5568214
parent15e43438401965e13b67bf5a4bb7989cdeff3708 (diff)
downloadmdevd-4594ed03e4ced04cb914c8fccad1ffab41cc4ee5.tar.gz
Some libcs have a char const *strchr()? need to investigate
-rw-r--r--CONTRIBUTING28
-rw-r--r--Makefile3
-rw-r--r--src/mdevd/mdevd.c2
3 files changed, 31 insertions, 2 deletions
diff --git a/CONTRIBUTING b/CONTRIBUTING
index 6279422..3173998 100644
--- a/CONTRIBUTING
+++ b/CONTRIBUTING
@@ -1,5 +1,31 @@
- Please add a Signed-Off-By: line at the end of your commit,
+- License
+
+ Your contributions to this project are governed by the ISC license.
+ Please review the COPYING file for this project.
+
+
+- Contribution terms
+
+ When making a contribution you agree to the following terms:
+
+ * I, the contributor, am the copyright owner of these changes
+ * I submit these changes according to the project's license
+with no additionam requirements
+ * I understand these changes in full and will be able to respond
+to review comments.
+
+ Please add a Signed-Off-By: line at the end of your commits,
which certifies that you have the right and authority to pass
it on as an open-source patch, as explicited in the Developer's
Certificate of Origin available in this project's DCO file,
or at https://developercertificate.org/
+
+
+- AI policy
+
+ This project does not accept contributions generated by LLMs
+(large language models), sometimes also referred to as "AI".
+ This policy is not open to discussion. Any content submitted that is
+clearly labelled as LLM-generated will be immediately closed, and any
+attempt to bypass this policy in any way will result in a ban from the
+project.
diff --git a/Makefile b/Makefile
index 62bc1a1..f519a87 100644
--- a/Makefile
+++ b/Makefile
@@ -190,6 +190,9 @@ lib%.a.xyzzy:
lib%.so.xyzzy:
exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) -Wl,-rpath=$(dynlibdir) $^ $(EXTRA_LIBS) $(LDLIBS)
+-lskarnet:
+ $(error Unable to link against skalibs. Check that you are using the correct --with-lib or --with-dynlib options; see ./configure --help)
+
.PHONY: it all clean distclean tests check tgz strip install install-dynlib install-bin install-lib install-include install-pkgconfig
.DELETE_ON_ERROR:
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c
index aecd5a7..7df3aaf 100644
--- a/src/mdevd/mdevd.c
+++ b/src/mdevd/mdevd.c
@@ -794,7 +794,7 @@ static inline int act_on_event (struct uevent_s const *event, unsigned int actio
if (ud->devname)
{
ud->devname += 9 ;
- *strchr(ud->devname, '\n') = 0 ;
+ *(char *)strchr(ud->devname, '\n') = 0 ;
}
}
if (!ud->devname) ud->devname = basename(ud->sysdevpath) ;