]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
Fix size warning.
authorThibault Godouet <yo8192@users.noreply.github.com>
Fri, 27 Dec 2024 13:11:21 +0000 (13:11 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Fri, 27 Dec 2024 13:11:21 +0000 (13:11 +0000)
fcrondyn.c

index e04e0aeaccd9dd0f094003bbbda2e1760bbce5f0..d76224c81df8c9d56f3467d8b9ad22ec8a79eccc 100644 (file)
@@ -253,9 +253,10 @@ parse_cmd(char *cmd_str, long int **cmd, int *cmd_len)
                     fprintf(stderr, "  uid = ALL\n");
             }
             else {
-                Write_cmd(user_uid);
+                int_buf = (long int)user_uid;
+                Write_cmd(int_buf);
                 if (debug_opt)
-                    fprintf(stderr, "  uid = %d\n", (int)user_uid);
+                    fprintf(stderr, "  uid = %ld\n", int_buf);
             }
 
         }