]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Use more standard C.
authorBen Schmidt <none@none>
Wed, 12 Feb 2014 22:15:28 +0000 (09:15 +1100)
committerBen Schmidt <none@none>
Wed, 12 Feb 2014 22:15:28 +0000 (09:15 +1100)
src/mlmmj-maintd.c

index 99ea01a78c35ab4771b128cd51a86260839dd9a6..02cfd167bca609c4c4b9ee233f54ea5a7e48444d 100644 (file)
@@ -140,6 +140,8 @@ int clean_moderation(const char *listdir)
 
        time_t modreqlife = 0;
        char *modreqlifestr;
+       char *moddirname;
+       int ret;
 
        modreqlifestr = ctrlvalue(listdir, "modreqlife");
        if(modreqlifestr) {
@@ -149,8 +151,8 @@ int clean_moderation(const char *listdir)
        if(modreqlife == 0)
                modreqlife = MODREQLIFE;
 
-       char *moddirname = concatstr(2, listdir, "/moderation");
-       int ret = delolder(moddirname, modreqlife);
+       moddirname = concatstr(2, listdir, "/moderation");
+       ret = delolder(moddirname, modreqlife);
                
        myfree(moddirname);