diff options
author | Nils Durner <durner@gnunet.org> | 2009-06-16 22:09:33 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-06-16 22:09:33 +0000 |
commit | ffac21b92afd4090d9e482402438104975771234 (patch) | |
tree | a04b76eff7b17f63163efcbb7ef5f3809e6da844 /src | |
parent | 55fe7180de4f26582646418073bd52bf13bb5697 (diff) | |
download | gnunet-ffac21b92afd4090d9e482402438104975771234.tar.gz gnunet-ffac21b92afd4090d9e482402438104975771234.zip |
-atoo
Diffstat (limited to 'src')
-rw-r--r-- | src/util/disk.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index 2722dda71..011bd8a8d 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -489,22 +489,6 @@ GNUNET_DISK_fn_read (const char * const fn, void *result, int len) | |||
489 | 489 | ||
490 | 490 | ||
491 | /** | 491 | /** |
492 | * Convert string to value ('755' for chmod-call) | ||
493 | */ | ||
494 | static int | ||
495 | atoo (const char *s) | ||
496 | { | ||
497 | int n = 0; | ||
498 | |||
499 | while (('0' <= *s) && (*s < '8')) | ||
500 | { | ||
501 | n <<= 3; | ||
502 | n += *s++ - '0'; | ||
503 | } | ||
504 | return n; | ||
505 | } | ||
506 | |||
507 | /** | ||
508 | * Write a buffer to a file. | 492 | * Write a buffer to a file. |
509 | * @param h handle to open file | 493 | * @param h handle to open file |
510 | * @param buffer the data to write | 494 | * @param buffer the data to write |