Skip to content

Commit

Permalink
Make that returned character "signed" explicity so that it is always …
Browse files Browse the repository at this point in the history
…a signed character on all platforms.
  • Loading branch information
mikebrady committed Mar 5, 2018
1 parent 9776b37 commit 04d0d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shairport-sync-dbus-test-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) {

GBusType gbus_type_selected = G_BUS_TYPE_SYSTEM; // set default
// get the options --system or --session for system bus or session bus
char c; /* used for argument parsing */
signed char c; /* used for argument parsing */
poptContext optCon; /* context for parsing command-line options */

struct poptOption optionsTable[] = {
Expand Down
2 changes: 1 addition & 1 deletion shairport-sync-mpris-test-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void *dbus_thread_func(void *arg) {
int main(int argc, char *argv[]) {
GBusType gbus_type_selected = G_BUS_TYPE_SYSTEM; // set default
// get the options --system or --session for system bus or session bus
char c; /* used for argument parsing */
signed char c; /* used for argument parsing */
poptContext optCon; /* context for parsing command-line options */

struct poptOption optionsTable[] = {
Expand Down

0 comments on commit 04d0d26

Please sign in to comment.