History

kbuild: add static to prototypes

Warnings found via gcc -Wmissing-prototypes.

Trevor Keith committed 17 years ago

Commit 4356f481 parent 66a57069 files · +43 −43Browse files

Showing the changes to scripts/basic/hash.c (1 of 9 files). Show all

Unified · Split

scripts/basic/hash.c+2−2
@@ -21,7 +21,7 @@ static void usage(void) · 20 unmodified lines
2121 * http://www.cse.yorku.ca/~oz/hash.html
2222 */
2323
24−unsigned int djb2_hash(char *str)
24+static unsigned int djb2_hash(char *str)
2525 {
2626 unsigned long hash = 5381;
2727 int c;
@@ -34,7 +34,7 @@ unsigned int djb2_hash(char *str) · 6 unmodified lines
3434 return (unsigned int)(hash & ((1 << DYNAMIC_DEBUG_HASH_BITS) - 1));
3535 }
3636
37−unsigned int r5_hash(char *str)
37+static unsigned int r5_hash(char *str)
3838 {
3939 unsigned long hash = 0;
4040 int c;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t