mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
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:
@@ -197,7 +197,7 @@ void receive(enum notify_options notify, mqd_t mqd)
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char opt = 0;
|
int opt = 0;
|
||||||
enum notify_options notify = DO_NOT_NOTIFY;
|
enum notify_options notify = DO_NOT_NOTIFY;
|
||||||
mqd_t mqd;
|
mqd_t mqd;
|
||||||
char *client = NULL;
|
char *client = NULL;
|
||||||
|
@@ -71,7 +71,7 @@ static void usage(char *prog_name, char *msg)
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char opt = 0;
|
int opt = 0;
|
||||||
char *client = NULL;
|
char *client = NULL;
|
||||||
int uid;
|
int uid;
|
||||||
int qid;
|
int qid;
|
||||||
|
Reference in New Issue
Block a user