]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Add streq() to prettify code
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 30 Nov 2011 16:36:46 +0000 (14:36 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 30 Nov 2011 16:36:46 +0000 (14:36 -0200)
It's needed for importing index handling from module-init-tools, and may
be useful for the project, too.

libkmod/libkmod-private.h

index 256f6ec6bd502f3c29a633d6553a3d25dde78741..b5fa41a793da6953b4abbcc353c01bd4c640fda3 100644 (file)
@@ -64,5 +64,6 @@ void kmod_free_config(struct kmod_ctx *ctx, struct kmod_config *config);
 
 char *getline_wrapped(FILE *fp, unsigned int *linenum);
 char *underscores(struct kmod_ctx *ctx, char *s);
+#define streq(a, b) (strcmp((a), (b)) == 0)
 
 #endif