fixed
This commit is contained in:
parent
33b89e64da
commit
34fbb11114
6 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "human.h"
|
||||
|
||||
char mu_hs_buf[MU_HUMAN_BUF_SIZE + 1];
|
||||
|
||||
char *mu_humansize(off_t n, off_t block) {
|
||||
memset(mu_hs_buf, '\0', sizeof(mu_hs_buf));
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#define MU_HUMAN_BUF_SIZE 16
|
||||
static char mu_hs_buf[MU_HUMAN_BUF_SIZE + 1];
|
||||
|
||||
char *mu_humansize(off_t n, off_t block);
|
||||
#endif
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
#include <sys/stat.h>
|
||||
#include "mode_to_str.h"
|
||||
|
||||
char mode[11];
|
||||
|
||||
char *mu_mode_2_str(mode_t file_mode) {
|
||||
snprintf(mode, sizeof(mode), "----------");
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef _MODE_TO_STR_H
|
||||
#define _MODE_TO_STR_H
|
||||
static char mode[11];
|
||||
|
||||
char *mu_mode_2_str(mode_t file_mode);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue