chiark / gitweb /
subdirmk: Change stub force target to `run-main.mk'
[secnet.git] / util.c
diff --git a/util.c b/util.c
index e6f01417a61453fd4b28dec489351703b3bd69d7..977e131fbeda106fcaa8fe7964af878ccbe2ebe9 100644 (file)
--- a/util.c
+++ b/util.c
@@ -427,6 +427,11 @@ const char *priomsg_getmessage(const struct priomsg *pm, const char *defmsg)
        return defmsg;
 }
 
+bool_t priomsg_update_fixed(struct priomsg *pm, int prio, const char *m) {
+    if (!priomsg_update_p(pm, prio)) return False;
+    truncmsg_add_string(&pm->m, m);
+    return True;
+}
 
 void buffer_new(struct buffer_if *buf, int32_t len)
 {