Merge tests: fix variable type for getopt

getopt returns an int, not a char.
Error caused by this issue could only be observed on non-x86 systems.
Closes LP#2000359

Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/962
Approved-by: Jon Tourville <jon.tourville@canonical.com>
Approved-by: Steve Beattie <gitlab@nxnw.org>
Merged-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
Georgia Garcia 2023-01-03 18:56:03 +00:00
commit c5ff2033e2
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ void receive(enum notify_options notify, mqd_t mqd)
int main(int argc, char *argv[])
{
char opt = 0;
int opt = 0;
enum notify_options notify = DO_NOT_NOTIFY;
mqd_t mqd;
char *client = NULL;

View file

@ -71,7 +71,7 @@ static void usage(char *prog_name, char *msg)
int main(int argc, char *argv[])
{
char opt = 0;
int opt = 0;
char *client = NULL;
int uid;
int qid;