Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5c7512e

Browse files
committed
move pthread.h ssu_crond.h to cron_support.h
1 parent ef3155a commit 5c7512e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

‎cron_support.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "cron_support.h"
77

88
FILE *fp;
9-
pthread_attr_t mutex; // 뮤텍스 객체 선언
9+
pthread_mutex_t mutex; // 뮤텍스 객체 선언
1010
extern char reservation_command[BUFFER_SIZE][MAX_BUFFER_SIZE]; // 예약 명령 목록
1111

1212
/**
@@ -88,7 +88,6 @@ void write_log(int command_type, char *command) // 로그 파일에 이력 기
8888
{
8989
time_t now_t;
9090
struct tm *now_tm;
91-
char temp[MAX_BUFFER_SIZE];
9291

9392
pthread_mutex_lock(&mutex);
9493
if ((fp = fopen(CRONTAB_LOG, "r+")) == NULL)

‎cron_support.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#ifndef CRON_SUPPORT_H
77
#define CRON_SUPPORT_H
88

9+
#include <pthread.h>
910
#include "common.h"
1011

1112
/**

‎ssu_crond.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <fcntl.h>
1010
#include <signal.h>
11-
#include <pthread.h>
1211
#include <sys/types.h>
1312
#include <sys/stat.h>
1413

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /