0
0
mirror of https://github.com/bobwen-dev/htpdate synced 2025-04-11 23:00:44 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Bob Wen
b72f5a8f53
Update c-cpp.yml 2024-12-31 04:36:25 +00:00
Bob Wen
267f93caf6
Update c-cpp.yml 2024-12-31 04:05:54 +00:00
Bob Wen
72d17b3458
Create build workflow c-cpp.yml 2024-12-31 03:57:52 +00:00
Bob Wen
c6ad159996
Remove redundant header file lines 2024-12-31 03:49:41 +00:00
2 changed files with 21 additions and 5 deletions

21
.github/workflows/c-cpp.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: system update
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install -y --fix-missing libcurl4-openssl-dev
- name: build
run: gcc -o htpdate htpdate.c -lcurl

View File

@ -480,11 +480,6 @@ int qsort_compare(const void *a, const void *b) {
return (diff > 0.0) - (diff < 0.0);
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
void adjust_system_time(TIME_T delta) {
#ifdef _WIN32
// Windows specific code