From fa8ef4b4fc2bbc74cda2a47e2cc0416dde18f548 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Sun, 12 Jan 2014 06:38:53 -0500 Subject: [PATCH] qfile-dom0-unpacker: add a few consts where appropriate --- dom0-updates/qfile-dom0-unpacker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom0-updates/qfile-dom0-unpacker.c b/dom0-updates/qfile-dom0-unpacker.c index 2df21a9..13ea3de 100644 --- a/dom0-updates/qfile-dom0-unpacker.c +++ b/dom0-updates/qfile-dom0-unpacker.c @@ -18,7 +18,7 @@ void notify_progress(int p1, int p2) { } -int prepare_creds_return_uid(char *username) +int prepare_creds_return_uid(const char *username) { struct passwd *pwd; // First try name @@ -41,7 +41,7 @@ int prepare_creds_return_uid(char *username) int main(int argc, char ** argv) { - char *incoming_dir; + const char *incoming_dir; int uid; char *var; long long files_limit = DEFAULT_MAX_UPDATES_FILES;