Compiling rpcclient/cmd_shutdown.c cc-1164 cc: WARNING File = rpcclient/cmd_shutdown.c, Line = 43 Argument of type "const char **" is incompatible with parameter of type "char *const *". while ((opt = getopt(argc, argv, "m:t:rf")) != EOF) ^
In cmd_shutdown_init() argv should be "const *char *". Also, I noticed the getopt() loop in this function checks the return value against EOF. That seems unusual, when the usual is to compare it to -1, which the getopt() man page says is the return value when there are no more options. I don't believe EOF is required to be defined as -1 in the C standard.
Created attachment 1057 [details] changes type on argv to "char *const *"
*** Bug 2086 has been marked as a duplicate of this bug. ***
Created attachment 1058 [details] changes type on argv to "char *const *" Makes one change over the previous patch to make an existing typecast syntactically consistent with the others.
removed offending code. Should be using 'net rpc shutdown' instead. Same reason why I removed the code from cmd_reg.c
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.