mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-17 22:05:25 -05:00
opt: change unsigned int to uint32_t
This commit is contained in:
parent
9196e2a50b
commit
b9952f03b5
20 changed files with 314 additions and 329 deletions
|
|
@ -86,7 +86,7 @@ static void noop_description(void *data, struct wl_output *wl_output,
|
|||
const char *description) {}
|
||||
|
||||
// 将 n 转换为 9 位二进制字符串,结果存入 buf(至少长度 10)
|
||||
void bin_str_9bits(char *buf, unsigned int n) {
|
||||
void bin_str_9bits(char *buf, uint32_t n) {
|
||||
for (int i = 8; i >= 0; i--) {
|
||||
*buf++ = ((n >> i) & 1) ? '1' : '0';
|
||||
}
|
||||
|
|
@ -268,7 +268,7 @@ static void dwl_ipc_output_kb_layout(void *data,
|
|||
static void
|
||||
dwl_ipc_output_scalefactor(void *data,
|
||||
struct zdwl_ipc_output_v2 *dwl_ipc_output,
|
||||
const unsigned int scalefactor) {
|
||||
const uint32_t scalefactor) {
|
||||
if (!Aflag)
|
||||
return;
|
||||
char *output_name = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue