]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Replace the last bzeros with memset 267/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Sun, 3 Oct 2021 20:37:02 +0000 (16:37 -0400)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 4 Oct 2021 17:00:28 +0000 (13:00 -0400)
bzero has been deprecated since 2008

scheduler/sysman.c

index bf5fff8d78c64ddf9791d2d8079ba48261772dc4..38cbe31e25457512bcd8cbdd87e289172d32a3d9 100644 (file)
@@ -427,7 +427,7 @@ sysEventThreadEntry(void)
   * Register for power state change notifications
   */
 
-  bzero(&threadData, sizeof(threadData));
+  memset(&threadData, 0, sizeof(threadData));
 
   threadData.sysevent.powerKernelPort =
       IORegisterForSystemPower(&threadData, &powerNotifierPort,
@@ -443,7 +443,7 @@ sysEventThreadEntry(void)
   * Register for system configuration change notifications
   */
 
-  bzero(&storeContext, sizeof(storeContext));
+  memset(&storeContext, 0, sizeof(storeContext));
   storeContext.info = &threadData;
 
   store = SCDynamicStoreCreate(kCFAllocatorDefault, CFSTR("cupsd"),