s3:lib/util: use %llu consitently (instead of %d) in interpret_pid() to parse the pid
authorStefan Metzmacher <metze@samba.org>
Thu, 9 Jun 2011 12:24:03 +0000 (14:24 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 9 Jun 2011 12:46:22 +0000 (14:46 +0200)
metze

source3/lib/util.c

index 51ad7bd3bd966658dbdc83c9a0abc08e6c6437cd..d04887c854ceb231fe7b0037a3f1fd0c5a2272c5 100644 (file)
@@ -2003,7 +2003,7 @@ struct server_id interpret_pid(const char *pid_string)
                result.vnn = get_my_vnn();
                result.pid = pid;
                result.task_id = task_id;
-       } else if (sscanf(pid_string, "%d", &pid) == 1) {
+       } else if (sscanf(pid_string, "%llu", &pid) == 1) {
                result.vnn = get_my_vnn();
                result.pid = pid;
        } else {