]> git.ipfire.org Git - pakfire.git/commitdiff
job: Fix replace error in flags
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Oct 2024 18:24:11 +0000 (18:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Oct 2024 18:24:11 +0000 (18:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/job.c

index 171a87b57c33286d1e7806cb269e0d6333b6bd51..7151ba7df25c81a6e13b63afd42384ce41a4582a 100644 (file)
@@ -55,8 +55,8 @@ struct pakfire_job {
 
        // Flags
        enum {
-               pakfire_job_TEST   = (1 << 0),
-               pakfire_job_CCACHE = (1 << 1),
+               PAKFIRE_JOB_TEST   = (1 << 0),
+               PAKFIRE_JOB_CCACHE = (1 << 1),
        } flags;
 
        // Package URL
@@ -146,7 +146,7 @@ static int pakfire_parse_job(struct pakfire_job* job, json_object* data) {
        if (json_object_object_get_ex(data, "ccache", &ccache)) {
                if (json_object_object_get_ex(ccache, "enabled", &o)) {
                        if (json_object_get_boolean(o)) {
-                               job->flags |= pakfire_job_CCACHE;
+                               job->flags |= PAKFIRE_JOB_CCACHE;
                        }
                }
 
@@ -164,7 +164,7 @@ static int pakfire_parse_job(struct pakfire_job* job, json_object* data) {
        // Check if this is a test job
        if (json_object_object_get_ex(data, "test", &o)) {
                if (json_object_get_boolean(o)) {
-                       job->flags |= pakfire_job_TEST;
+                       job->flags |= PAKFIRE_JOB_TEST;
                }
        }