diff options
| author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2006-02-01 12:56:19 +0000 |
|---|---|---|
| committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2006-02-01 12:56:19 +0000 |
| commit | 73ffd762ca58831584641b9760eb3b9b13bae195 (patch) | |
| tree | 617b77d974f1b13f126b1bbcc8d934850918c9d2 /miscutils | |
| parent | b399a9634342cd083f3008c162ba5e901e9258f5 (diff) | |
| download | busybox-w32-73ffd762ca58831584641b9760eb3b9b13bae195.tar.gz busybox-w32-73ffd762ca58831584641b9760eb3b9b13bae195.tar.bz2 busybox-w32-73ffd762ca58831584641b9760eb3b9b13bae195.zip | |
removed anoinig warnings
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/devfsd.c | 12 | ||||
| -rw-r--r-- | miscutils/less.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index fce63e54d..fd5f54763 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
| @@ -871,7 +871,7 @@ static void action_permissions (const struct devfsd_notify_struct *info, | |||
| 871 | } /* End Function action_permissions */ | 871 | } /* End Function action_permissions */ |
| 872 | 872 | ||
| 873 | static void action_modload (const struct devfsd_notify_struct *info, | 873 | static void action_modload (const struct devfsd_notify_struct *info, |
| 874 | const struct config_entry_struct *entry) | 874 | const struct config_entry_struct *entry ATTRIBUTE_UNUSED) |
| 875 | /* [SUMMARY] Load a module. | 875 | /* [SUMMARY] Load a module. |
| 876 | <info> The devfs change. | 876 | <info> The devfs change. |
| 877 | <entry> The config file entry. | 877 | <entry> The config file entry. |
| @@ -1705,7 +1705,7 @@ static char get_old_ide_name (unsigned int major, unsigned int minor) | |||
| 1705 | i==IDE6_MAJOR || i==IDE7_MAJOR || i==IDE8_MAJOR || | 1705 | i==IDE6_MAJOR || i==IDE7_MAJOR || i==IDE8_MAJOR || |
| 1706 | i==IDE9_MAJOR ) | 1706 | i==IDE9_MAJOR ) |
| 1707 | { | 1707 | { |
| 1708 | if(i==major) | 1708 | if((unsigned int)i==major) |
| 1709 | { | 1709 | { |
| 1710 | letter=c; | 1710 | letter=c; |
| 1711 | break; | 1711 | break; |
| @@ -1901,7 +1901,7 @@ static const char *expand_variable (char *buffer, unsigned int length, | |||
| 1901 | for (ptr = input; isalnum (ch) || (ch == '_') || (ch == ':');ch = *++ptr) | 1901 | for (ptr = input; isalnum (ch) || (ch == '_') || (ch == ':');ch = *++ptr) |
| 1902 | /* VOID */ ; | 1902 | /* VOID */ ; |
| 1903 | len = ptr - input; | 1903 | len = ptr - input; |
| 1904 | if (len >= sizeof tmp) | 1904 | if ((size_t)len >= sizeof tmp) |
| 1905 | goto expand_variable_out; | 1905 | goto expand_variable_out; |
| 1906 | 1906 | ||
| 1907 | safe_memcpy (tmp, input, len); | 1907 | safe_memcpy (tmp, input, len); |
| @@ -1927,7 +1927,7 @@ static const char *expand_variable (char *buffer, unsigned int length, | |||
| 1927 | { | 1927 | { |
| 1928 | /* Must be simple variable expansion with "${var}" */ | 1928 | /* Must be simple variable expansion with "${var}" */ |
| 1929 | len = ptr - input; | 1929 | len = ptr - input; |
| 1930 | if (len >= sizeof tmp) | 1930 | if ((size_t)len >= sizeof tmp) |
| 1931 | goto expand_variable_out; | 1931 | goto expand_variable_out; |
| 1932 | 1932 | ||
| 1933 | safe_memcpy (tmp, input, len); | 1933 | safe_memcpy (tmp, input, len); |
| @@ -1943,7 +1943,7 @@ static const char *expand_variable (char *buffer, unsigned int length, | |||
| 1943 | } | 1943 | } |
| 1944 | /* It's that handy "${var:-word}" expression. Check if var is defined */ | 1944 | /* It's that handy "${var:-word}" expression. Check if var is defined */ |
| 1945 | len = ptr - input; | 1945 | len = ptr - input; |
| 1946 | if (len >= sizeof tmp) | 1946 | if ((size_t)len >= sizeof tmp) |
| 1947 | goto expand_variable_out; | 1947 | goto expand_variable_out; |
| 1948 | 1948 | ||
| 1949 | safe_memcpy (tmp, input, len); | 1949 | safe_memcpy (tmp, input, len); |
| @@ -1988,7 +1988,7 @@ static const char *expand_variable (char *buffer, unsigned int length, | |||
| 1988 | pointer to start of word in "${var:-word}" */ | 1988 | pointer to start of word in "${var:-word}" */ |
| 1989 | input += 2; | 1989 | input += 2; |
| 1990 | len = ptr - input; | 1990 | len = ptr - input; |
| 1991 | if (len >= sizeof tmp) | 1991 | if ((size_t)len >= sizeof tmp) |
| 1992 | goto expand_variable_out; | 1992 | goto expand_variable_out; |
| 1993 | 1993 | ||
| 1994 | safe_memcpy (tmp, input, len); | 1994 | safe_memcpy (tmp, input, len); |
diff --git a/miscutils/less.c b/miscutils/less.c index 0b0dc0c8b..df55b50ac 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
| @@ -648,7 +648,7 @@ static char *process_regex_on_line(char *line, regex_t *pattern) { | |||
| 648 | match_found = 1; | 648 | match_found = 1; |
| 649 | 649 | ||
| 650 | line2 = insert_highlights(line2, match_structs.rm_so + prev_eo, match_structs.rm_eo + prev_eo); | 650 | line2 = insert_highlights(line2, match_structs.rm_so + prev_eo, match_structs.rm_eo + prev_eo); |
| 651 | if (match_structs.rm_eo + 11 + prev_eo < strlen(line2)) | 651 | if ((size_t)match_structs.rm_eo + 11 + prev_eo < strlen(line2)) |
| 652 | strcat(sub_line, line2 + match_structs.rm_eo + 11 + prev_eo); | 652 | strcat(sub_line, line2 + match_structs.rm_eo + 11 + prev_eo); |
| 653 | 653 | ||
| 654 | prev_eo += match_structs.rm_eo + 11; | 654 | prev_eo += match_structs.rm_eo + 11; |
