]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - udev_lib.h
[PATCH] pass SEQNUM trough udevd
[thirdparty/systemd.git] / udev_lib.h
index 18ce25ccc791475a450888747171ebc22fe7065b..53ad92d505443b584567fbeca8118bdef9662c45 100644 (file)
@@ -59,6 +59,12 @@ do { \
        snprintf((to) + strlen(to), maxsize - strlen(to)-1, "%u", i); \
 } while (0)
 
+#define strlongcat(to, i) \
+do { \
+       to[sizeof(to)-1] = '\0'; \
+       snprintf((to) + strlen(to), sizeof(to) - strlen(to)-1, "%li", i); \
+} while (0)
+
 #define foreach_strpart(str, separator, pos, len) \
        for(pos = str, len = 0; \
            (pos) < ((str) + strlen(str)); \