mirror of
https://github.com/bobwen-dev/htpdate
synced 2025-04-11 23:00:44 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b72f5a8f53 | ||
![]() |
267f93caf6 | ||
![]() |
72d17b3458 | ||
![]() |
c6ad159996 |
21
.github/workflows/c-cpp.yml
vendored
Normal file
21
.github/workflows/c-cpp.yml
vendored
Normal 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
|
@ -480,11 +480,6 @@ int qsort_compare(const void *a, const void *b) {
|
|||||||
return (diff > 0.0) - (diff < 0.0);
|
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) {
|
void adjust_system_time(TIME_T delta) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Windows specific code
|
// Windows specific code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user