Skip to content
Snippets Groups Projects
Commit 54ddf639 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

fix some warning

parent b1d9c2c4
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,7 @@ static inline void info_help (void)
static void string_env(char *tmp,char const *s,size_t len)
{
int pos = 0 ;
ssize_t r = 0 ;
ssize_t r = 0 , pos = 0 ;
while ((pos < len) && (r != -1))
{
......
......@@ -71,9 +71,9 @@ int loop_stra(stralloc *sa,char const *search)
int main (int argc, char const *const *argv, char const *const *envp)
{
int r, i, unexport ;
int r, unexport ;
int insist = 1 ;
size_t pathlen ;
size_t pathlen, i ;
char const *path = 0 ;
char const *file = 0 ;
char tpath[MAXENV + 1] ;
......
......@@ -38,9 +38,9 @@
// for -s: -s0 -> origin, -s1 -> backup ;
int backup_switcher(int argc, char const *const *argv,ssexec_t *info)
{
unsigned int r, change, back, verbosity, type ;
unsigned int change, back, verbosity, type ;
uint32_t what = -1 ;
int r ;
struct stat st ;
char const *tree = NULL ;
......
......@@ -23,9 +23,9 @@
int scandir_send_signal(char const *scandir,char const *signal)
{
char data[DATASIZE] ;
unsigned int datalen = 0 ;
size_t datalen = 0 ;
int id = strlen(signal) ;
size_t id = strlen(signal) ;
while (datalen < id)
{
data[datalen] = signal[datalen] ;
......
......@@ -90,7 +90,7 @@ int ssexec_init(int argc, char const *const *argv,char const *const *envp,ssexec
/** svc already initiated? */
if (classic)
{
int i ;
size_t i ;
if (!dir_get(&gasvc,svdir,"",S_IFDIR)) strerr_diefu1x(111,"get classic services") ;
if (!genalloc_len(stralist,&gasvc))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment