Fixed Build warning wfd_util_get_access_list 60/40560/3
authorNishant Chaprana <n.chaprana@samsung.com>
Fri, 5 Jun 2015 06:25:34 +0000 (11:55 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Fri, 5 Jun 2015 06:37:13 +0000 (23:37 -0700)
commit3dd6d96ad3b4ab2688dbebdbb85a5868ed2e7a4a
treed1a3461ffebe73c191493816c072506863534205
parent3a96110b2a0b55ea7096cd828be94a94f4a321b6
Fixed Build warning wfd_util_get_access_list

Description: This patch removes build warning in
wfd_util_get_access_list, in this funtion integer was compared
to NULL, which is wrong and was generating warning.

As per man pages:
fgets return char* and it's ouput was assigned to an integer

] wifi-direct-util.c: In function 'wfd_util_get_access_list':
] warning: assignment makes integer from pointer without a cast
]   while ((res = fgets(device_info, MACSTR_LEN + DEV_NAME_LEN + 2, fd)) != NULL)
]               ^
] warning: comparison between pointer and integer
]   while ((res = fgets(device_info, MACSTR_LEN + DEV_NAME_LEN + 2, fd)) != NULL)
]                                                                        ^

Change-Id: I7600a44ecc808f15f11649206606313fe614e835
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/wifi-direct-manager.spec
src/wifi-direct-util.c